fix
[pnews.git] / war / run.sh
index fa49ece..02c44ba 100755 (executable)
@@ -4,9 +4,9 @@ SDIR=`dirname $0`
 SWAR=`realpath $SDIR/target/pnews-1.0.war`
 
 if [ -z "$1" ]; then
-        SHARED_DIR="$1"
-else
         exit 1
+else
+        SHARED_DIR="$1"
 fi
 
 echo "SHARED_DIR=$SHARED_DIR"