diff --git a/salt/common/tools/sbin/so-status b/salt/common/tools/sbin/so-status index a8032a849..ef3f98176 100755 --- a/salt/common/tools/sbin/so-status +++ b/salt/common/tools/sbin/so-status @@ -285,8 +285,6 @@ main() { fi } -# {% endraw %} - is_tty() { __tty=0 [ -t 1 ] && __tty=1 @@ -294,6 +292,8 @@ is_tty() { [ "${#NO_COLOR}" -ne 0 ] && __tty=0 } +# {% endraw %} + if ! [ "$(id -u)" = 0 ]; then echo "${0}: This command must be run as root" exit 1