mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
be even more liberal with the temp zone search
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
a417559231
commit
d410d525d6
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ if [ "$1" = "--detail" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
for i in `ls "$DIR/TH"*"/temperature"`; do
|
||||
for i in `ls "$DIR/"*"/temperature"`; do
|
||||
t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//")
|
||||
printf "\005{= kY}%sC\005{-} " "$t"
|
||||
break
|
||||
|
|
|
@ -23,7 +23,7 @@ if [ "$1" = "--detail" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
for i in `ls "$DIR/TH"*"/temperature"`; do
|
||||
for i in `ls "$DIR/"*"/temperature"`; do
|
||||
t=$(sed "s/^[^0-9]\+//" "$i" | sed "s/\s.*$//" | awk '{printf "%.0f", $1 *9/5 + 32}')
|
||||
printf "\005{= kY}%sF\005{-} " "$t"
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue