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() {
|
function usage() {
|
||||||
echo "Usage: $0 [action] <sit package name>"
|
echo "Usage: $0 [action] <sit package name>"
|
||||||
echo "Valid actions:"
|
echo "Valid actions:"
|
||||||
echo " sit_sitinfo"
|
echo " sitinfo"
|
||||||
echo " unpack"
|
echo " unpack"
|
||||||
echo " prepare"
|
echo " prepare"
|
||||||
echo " configure"
|
echo " configure"
|
||||||
|
@ -36,12 +36,9 @@ sit_classfile=""
|
||||||
# sit action to be performed
|
# sit action to be performed
|
||||||
sit_action="all"
|
sit_action="all"
|
||||||
|
|
||||||
while [ $1 != "" ] ; do
|
while [ "$1" != "" ] ; do
|
||||||
case $1 in
|
case $1 in
|
||||||
"sitinfo")
|
"sitinfo"| \
|
||||||
sit_sitinfo
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
"all"| \
|
"all"| \
|
||||||
"unpack"| \
|
"unpack"| \
|
||||||
"prepare"| \
|
"prepare"| \
|
||||||
|
|
Loading…
Reference in a new issue