diff options
author | Wynn Wolf Arbor | 2020-01-20 22:13:06 +0100 |
---|---|---|
committer | Wynn Wolf Arbor | 2020-01-20 22:13:06 +0100 |
commit | 53b23eabac7f7c801df6111989eba1d812daa760 (patch) | |
tree | d70770d06c1a925b0ac0f163ce1ca19d4223c993 | |
parent | 64dfee80d86b8f969a037945b7a5ce671e74fb0b (diff) | |
download | bosun-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.
Diffstat (limited to '')
-rwxr-xr-x | bosun | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |