aboutsummaryrefslogtreecommitdiff
path: root/home/bin/chrootfs
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/chrootfs
parent30e7c35db5936c59078cbfd1d83632454add572f (diff)
downloaddotfiles-0123bf08f118dac601fd3b6c3e8a532cc9c76dd2.tar.gz
dotfiles-0123bf08f118dac601fd3b6c3e8a532cc9c76dd2.tar.bz2
dotfiles-0123bf08f118dac601fd3b6c3e8a532cc9c76dd2.zip
Run shellcheck on utility scripts
Diffstat (limited to 'home/bin/chrootfs')
-rwxr-xr-xhome/bin/chrootfs4
1 files changed, 2 insertions, 2 deletions
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
#