Modified not to print under the decimal points. (#83)

This commit is contained in:
tsutomu 2019-06-16 19:15:46 +09:00 committed by Martin Beentjes
parent 8f1626fe95
commit 0272f2fc94

View file

@ -18,7 +18,7 @@ print_battery_percentage() {
fi
local percentage=$(upower -i $battery | awk '/percentage:/ {print $2}')
if [ "$percentage" ]; then
echo $percentage
echo ${percentage%.*%}
return
fi
local energy