aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples/commands
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-09-30 23:29:44 +0200
committerMattias Andrée <maandree@operamail.com>2013-09-30 23:29:44 +0200
commit89f8903bc5b942211c95e3a1dfdf1d030be8596d (patch)
tree169e8232171e24e6a317e83701f59081a8eb72da /gotrc-examples/commands
parentderp (diff)
downloadgates-of-tartaros-89f8903bc5b942211c95e3a1dfdf1d030be8596d.tar.gz
gates-of-tartaros-89f8903bc5b942211c95e3a1dfdf1d030be8596d.tar.bz2
gates-of-tartaros-89f8903bc5b942211c95e3a1dfdf1d030be8596d.tar.xz
portability
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'gotrc-examples/commands')
-rw-r--r--gotrc-examples/commands2
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