aboutsummaryrefslogtreecommitdiffstats
path: root/gotrc-examples
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2013-09-30 23:53:00 +0200
committerMattias Andrée <maandree@operamail.com>2013-09-30 23:53:00 +0200
commit29f1900b5ce0b37156881b672c3892ab18290877 (patch)
tree238e5eeb77d53bf112778087899c5d5e0787cde7 /gotrc-examples
parentderp (diff)
downloadgates-of-tartaros-29f1900b5ce0b37156881b672c3892ab18290877.tar.gz
gates-of-tartaros-29f1900b5ce0b37156881b672c3892ab18290877.tar.bz2
gates-of-tartaros-29f1900b5ce0b37156881b672c3892ab18290877.tar.xz
fix bug introduced with portability1380578140
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'gotrc-examples')
-rw-r--r--gotrc-examples/commands2
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