fix script
authorMartin Zobel-Helas <zobel@debian.org>
Sat, 15 Feb 2014 10:34:34 +0000 (11:34 +0100)
committerMartin Zobel-Helas <zobel@debian.org>
Sat, 15 Feb 2014 10:34:34 +0000 (11:34 +0100)
Signed-off-by: Martin Zobel-Helas <zobel@debian.org>
remoteuser-hack

index 7103890..f53c11a 100755 (executable)
@@ -1,8 +1,9 @@
 #!/bin/bash
 
-if [ -e $DACS_USERNAME ]; then
-       REMOTE_USER=$DACS_USERNAME
+if [ ! -z "$DACS_USERNAME" ]; then
+       REMOTE_USER="$DACS_USERNAME"
        export REMOTE_USER
 fi
 
-$0.real "$@"
+exec $0.real "$@"
+