projects
/
pnews.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
538d228
)
display usage when needed
author
Jean-Philippe Orsini
<orsinije@fr.ibm.com>
Fri, 20 Oct 2017 21:38:06 +0000
(23:38 +0200)
committer
Jean-Philippe Orsini
<orsinije@fr.ibm.com>
Fri, 20 Oct 2017 21:38:06 +0000
(23:38 +0200)
war/run.sh
patch
|
blob
|
history
diff --git
a/war/run.sh
b/war/run.sh
index
65e7a29
..
73c9b1a
100755
(executable)
--- a/
war/run.sh
+++ b/
war/run.sh
@@
-3,7
+3,12
@@
SDIR=`dirname $0`
SWAR=`realpath $SDIR/target/pnews-1.0.war`
SDIR=`dirname $0`
SWAR=`realpath $SDIR/target/pnews-1.0.war`
+print_usage() {
+ echo "$0 <SHARED_DIR>"
+}
+
if [ -z "$1" ]; then
if [ -z "$1" ]; then
+ print_usage
exit 1
else
SHARED_DIR="$1"
exit 1
else
SHARED_DIR="$1"