diff options
-rwxr-xr-x | bl | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 )) ;; |