aboutsummaryrefslogtreecommitdiff
path: root/home/bin/backlight
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2018-10-20 17:30:42 -0700
committerJakob Odersky <jakob@odersky.com>2018-10-20 17:30:42 -0700
commit0123bf08f118dac601fd3b6c3e8a532cc9c76dd2 (patch)
tree8cd9f1bdb4da0e6a9a5b40edfd313038ccbcf89e /home/bin/backlight
parent30e7c35db5936c59078cbfd1d83632454add572f (diff)
downloaddotfiles-0123bf08f118dac601fd3b6c3e8a532cc9c76dd2.tar.gz
dotfiles-0123bf08f118dac601fd3b6c3e8a532cc9c76dd2.tar.bz2
dotfiles-0123bf08f118dac601fd3b6c3e8a532cc9c76dd2.zip
Run shellcheck on utility scripts
Diffstat (limited to 'home/bin/backlight')
-rwxr-xr-xhome/bin/backlight4
1 files changed, 2 insertions, 2 deletions
diff --git a/home/bin/backlight b/home/bin/backlight
index d18e58c..553b79a 100755
--- a/home/bin/backlight
+++ b/home/bin/backlight
@@ -12,12 +12,12 @@ case "$1" in
;;
dec)
if [[ "$current" -gt 0 ]]; then
- echo $(( $current - $step )) > "$device/brightness"
+ echo $(( current - step )) > "$device/brightness"
fi
;;
inc)
if [[ "$current" -lt "$max" ]]; then
- echo $(( $current + $step )) > "$device/brightness"
+ echo $(( current + step )) > "$device/brightness"
fi
;;
*)