Minor fixes in command line parser and options.
This commit is contained in:
parent
e24d4ed21b
commit
ea6f63a882
1 changed files with 3 additions and 6 deletions
9
sit
9
sit
|
@ -17,7 +17,7 @@ SIT_USER_CONFIG_FILE=$HOME/.sit
|
|||
function usage() {
|
||||
echo "Usage: $0 [action] <sit package name>"
|
||||
echo "Valid actions:"
|
||||
echo " sit_sitinfo"
|
||||
echo " sitinfo"
|
||||
echo " unpack"
|
||||
echo " prepare"
|
||||
echo " configure"
|
||||
|
@ -36,12 +36,9 @@ sit_classfile=""
|
|||
# sit action to be performed
|
||||
sit_action="all"
|
||||
|
||||
while [ $1 != "" ] ; do
|
||||
while [ "$1" != "" ] ; do
|
||||
case $1 in
|
||||
"sitinfo")
|
||||
sit_sitinfo
|
||||
exit 0
|
||||
;;
|
||||
"sitinfo"| \
|
||||
"all"| \
|
||||
"unpack"| \
|
||||
"prepare"| \
|
||||
|
|
Loading…
Reference in a new issue