mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-24 06:48:00 +01:00
#707 remove % from value
This commit is contained in:
parent
86839947ac
commit
f1201cdaeb
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ if [ "$1" = "status" ]; then
|
|||
# get battery level if possible
|
||||
if [ "${status}" = "ONLINE" ] || [ "${status}" = "ONBATT" ]; then
|
||||
battery=$(apcaccess -p BCHARGE | xargs | cut -d "." -f1)
|
||||
echo "upsBattery='${battery}%'"
|
||||
echo "upsBattery=${battery}"
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Reference in a new issue