aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-01-20 22:13:06 +0100
committerWynn Wolf Arbor2020-01-20 22:13:06 +0100
commit53b23eabac7f7c801df6111989eba1d812daa760 (patch)
treed70770d06c1a925b0ac0f163ce1ca19d4223c993
parent64dfee80d86b8f969a037945b7a5ce671e74fb0b (diff)
downloadbosun-53b23eabac7f7c801df6111989eba1d812daa760.tar.gz
Make shellcheck happy
I would not expect this to ever fail, but quoting the specific invocation of id -u here silences the only shellcheck warning.
-rwxr-xr-xbosun2
1 files changed, 1 insertions, 1 deletions
diff --git a/bosun b/bosun
index 49ba22c..6240029 100755
--- a/bosun
+++ b/bosun
@@ -4,7 +4,7 @@
export STOW_DIR=${STOW_DIR:-/etc/portage/stow}
need_root() {
- if test $(id -u) -ne 0; then
+ if test "$(id -u)" -ne 0; then
printf 'This action requires superuser access.\n'
exit 1
fi