Temper motd bugfix
This commit is contained in:
parent
99d50c609d
commit
7805982efb
@ -140,7 +140,8 @@ fi
|
||||
if [[ -n $(which temper) && $(dpkg --print-architecture) == armhf ]]; then
|
||||
amb_temp=$(temper -c)
|
||||
if echo $amb_temp | egrep -qv "Couldn't find the USB device"; then
|
||||
amb_temp=$(echo "scale=1;${amb_temp}/1" | bc)
|
||||
amb_temp=$(echo $amb_temp | awk '{print $NF}' | sed 's/C//g')
|
||||
amb_temp=$(echo "scale=1;${amb_temp}/1" | bc)
|
||||
else
|
||||
amb_temp=""
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user