git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. P. <harald.p.@xmart.de> 2018-06-27 13:50:00 +0200
committerH. P. <harald.p.@xmart.de> 2018-06-27 13:50:00 +0200
commit2ddab5cee2b858b9565443f6b42ed9ec89ee6518 (patch)
tree4c86e084bee7d0ac3d4a9328067036a8078caa47
parentf129e11a2fdd7a248f032b6c69a53e2c522c4f14 (diff)
downloadbatman-2ddab5cee2b858b9565443f6b42ed9ec89ee6518.tar.bz2
Final code sanitising
-rwxr-xr-xbin/batman4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/batman b/bin/batman
index 9928931..2d44682 100755
--- a/bin/batman
+++ b/bin/batman
@@ -16,7 +16,7 @@ batmobile() {
MSG="Battery charged at $BATVAL% with status \"$BATSTATE\", no shutdown."
[ ! -z "$VOERBOOS" ]&&[ "$VOERBOOS" -eq 1 ]&&echo "$MSG"
LMSG="Battery charged at $BATVAL% with status \"$BATSTATE\", no shutdown."
- logger -p"info" -t"batman" "$LMSG"||RETVAL=$(("$RETVAL"+$?))
+ logger -p"info" -t"batman" "$LMSG"||RETVAL=$((RETVAL+"$?"))
unset LMSG
[ -e "$BATFILE" ]&&/usr/sbin/shutdown -c >/dev/null 2>&1&&rm "$BATFILE"
SDCRV="$?"
@@ -26,7 +26,7 @@ batmobile() {
LMSG="batman" "$BATFILE exists but couldn't cancel shutdown!"
logger -p"warn" -t"$LMSG"
unset LMSG
- RETVAL=$(("$RETVAL"+"$SDCRV"))
+ RETVAL=$((RETVAL+SDCRV))
;;
esac
;;