display usage when needed
authorJean-Philippe Orsini <orsinije@fr.ibm.com>
Fri, 20 Oct 2017 21:38:06 +0000 (23:38 +0200)
committerJean-Philippe Orsini <orsinije@fr.ibm.com>
Fri, 20 Oct 2017 21:38:06 +0000 (23:38 +0200)
war/run.sh

index 65e7a29..73c9b1a 100755 (executable)
@@ -3,7 +3,12 @@
 SDIR=`dirname $0`
 SWAR=`realpath $SDIR/target/pnews-1.0.war`
 
+print_usage() {
+        echo "$0 <SHARED_DIR>"
+}
+
 if [ -z "$1" ]; then
+        print_usage
         exit 1
 else
         SHARED_DIR="$1"