aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhome/bin/backlight4
-rwxr-xr-xhome/bin/chrootfs4
2 files changed, 4 insertions, 4 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
;;
*)
diff --git a/home/bin/chrootfs b/home/bin/chrootfs
index 876a03f..5378d47 100755
--- a/home/bin/chrootfs
+++ b/home/bin/chrootfs
@@ -10,9 +10,9 @@ fail() {
rootfs="$1"
-[ -n "$rootfs" ] || fail "Usage: $(basename $0) <directory>"
+[ -n "$rootfs" ] || fail "Usage: $(basename "$0") <directory>"
[ -e "$rootfs" ] || fail "$rootfs does not exist"
-[ "$EUID" -eq 0 ] || fail "$(basename $0) must be run as root"
+[ "$EUID" -eq 0 ] || fail "$(basename "$0") must be run as root"
# Unmount and remove any temporary files
#