diff options
Diffstat (limited to 'bin/batman')
-rwxr-xr-x | bin/batman | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 ;; |