Skip to content

Commit 29840d8

Browse files
authored
Add files via upload
1 parent c4f89b6 commit 29840d8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

conk_reader.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#! /usr/bin/env bash
22

33
tmp=/dev/shm/conkys
4-
ls "$tmp" | while read -r neco
4+
while read -r neco
55
do
66
[ ! -e "$tmp/$neco/temp" ] && continue
77
read -r temp < <(cat "$tmp/$neco/temp")
8-
echo -n " $neco: $temp°C"
9-
done
10-
echo ""
8+
# echo -n " $neco: $temp°C"
9+
out="$out$neco: $temp°C "
10+
done <<<$(ls "$tmp")
11+
[ "$out" ] && echo $out

0 commit comments

Comments
 (0)