Skip to content

Commit

Permalink
Updated create-jar.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gzachos committed Aug 5, 2019
1 parent ce25c99 commit 146ea81
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions create-jar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@

NAME="$1"

if [ -z "${NAME}" ]
if [ "${NAME}" = "--help" ] || [ "${NAME}" = "-h" ]
then
echo "USAGE: ./create-jar.sh JARNAME[.jar]"
echo "USAGE: ./create-jar.sh [JARNAME[.jar]]"
exit 1
elif [ -z "${NAME}" ]
then
NAME="Mars4_5-SV.jar"
fi

if [ "${NAME:(-4)}" != ".jar" ]
Expand Down

0 comments on commit 146ea81

Please sign in to comment.