From 53b23eabac7f7c801df6111989eba1d812daa760 Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Mon, 20 Jan 2020 22:13:06 +0100 Subject: 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. --- bosun | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-2-gb3c3