changeset 565:0090285a5689

fixes launching script when running with no argument
author souliane <souliane@mailoo.org>
date Sat, 04 Oct 2014 10:32:52 +0200
parents fed185c95f1c
children 8a607044ecfa
files src/libervia.sh
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/libervia.sh	Fri Oct 03 12:33:03 2014 +0200
+++ b/src/libervia.sh	Sat Oct 04 10:32:52 2014 +0200
@@ -86,6 +86,7 @@
 		echo "bad argument, please use one of (stop, debug, fg, status) or no argument"
 		exit 1
     fi
+    shift
 fi
 
 
@@ -102,6 +103,4 @@
     mkdir $log_dir
 fi
 
-shift
-
 twistd $MAIN_OPTIONS $ADDITIONAL_OPTIONS $APP_NAME_FILE $PLUGIN_OPTIONS $@