From 0123bf08f118dac601fd3b6c3e8a532cc9c76dd2 Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Sat, 20 Oct 2018 17:30:42 -0700 Subject: Run shellcheck on utility scripts --- home/bin/backlight | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'home/bin/backlight') 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 ;; *) -- cgit v1.2.3