diff options
Diffstat (limited to 'gotrc-examples')
| -rw-r--r-- | gotrc-examples/commands | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gotrc-examples/commands b/gotrc-examples/commands index e0558f4..329ef0f 100644 --- a/gotrc-examples/commands +++ b/gotrc-examples/commands @@ -8,7 +8,7 @@ login_function=_login_commands _login_commands () { - if [ "${user%%+*}" = "" ]; then + if [ ! "${user}" = "" ] && [ "${user%%+*}" = "" ]; then if [ "${user}" = "+shutdown" ]; then shutdown -h now elif [ "${user}" = "+reboot" ]; then |
