diff options
author | clsr <clsr@clsr.net> | 2021-01-22 20:17:03 +0100 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2021-01-22 20:17:03 +0100 |
commit | e108dac02bdae43a5657f7fd075551ea2018df70 (patch) | |
tree | fe11c7e194da16fe10aed6c45f468ec75280aa69 | |
parent | 4dcfff1e04ad38f36ba14ee68f4477f88ff3b227 (diff) | |
download | bl-v2.tar.gz bl-v2.zip |
-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 )) ;; |