diff options
Diffstat (limited to 'gotrc-examples/commands')
| -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 1a98b07..6c382bf 100644 --- a/gotrc-examples/commands +++ b/gotrc-examples/commands @@ -8,7 +8,7 @@ login_function=_login_commands function _login_commands { - if [ "${user::1}" = "+" ]; then + if [ "${user%%+*}" = "" ]; then if [ "${user}" = "+shutdown" ]; then shutdown -h now elif [ "${user}" = "+reboot" ]; then |
