summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbl6
1 files changed, 6 insertions, 0 deletions
diff --git a/bl b/bl
index d66422b..a88eebe 100755
--- a/bl
+++ b/bl
@@ -106,6 +106,12 @@ get_raw_new() {
printf "expected a number for brightness, but got '%s'\n" "$val" >&2
exit 2
fi
+ while :; do
+ case "$val" in
+ 0*) val="${val#0}" ;;
+ *) break ;;
+ esac
+ done
case "$op" in
+) : $(( new = curr + val )) ;;