fixed scriptwq
authorJean-Philippe Orsini <orsinije@fr.ibm.com>
Mon, 16 Oct 2017 07:57:33 +0000 (09:57 +0200)
committerJean-Philippe Orsini <orsinije@fr.ibm.com>
Mon, 16 Oct 2017 07:57:33 +0000 (09:57 +0200)
war/run.sh

index a042c04..fa49ece 100755 (executable)
@@ -5,13 +5,14 @@ SWAR=`realpath $SDIR/target/pnews-1.0.war`
 
 if [ -z "$1" ]; then
         SHARED_DIR="$1"
+else
         exit 1
 fi
 
-SHARED_DIR=`realpath $SHARED_DIR`
-
 echo "SHARED_DIR=$SHARED_DIR"
 
+SHARED_DIR=`realpath $SHARED_DIR`
+
 DWAR="$SHARED_DIR/apps/pnews-1.0.war"
 
 mkdir -p $SHARED_DIR/apps