Let internal variables be overridden
This commit is contained in:
parent
45a0b773a3
commit
60545b4a83
|
@ -25,6 +25,7 @@
|
|||
|
||||
|
||||
#variables
|
||||
PROGNAME="appbroker.sh"
|
||||
#executables
|
||||
APPBROKER="AppBroker"
|
||||
|
||||
|
@ -33,18 +34,21 @@ APPBROKER="AppBroker"
|
|||
#usage
|
||||
_usage()
|
||||
{
|
||||
echo "Usage: appbroker.sh target" 1>&2
|
||||
echo "Usage: $APPBROKER target" 1>&2
|
||||
return 1
|
||||
}
|
||||
|
||||
|
||||
#main
|
||||
clean=0
|
||||
while getopts "cP:" name; do
|
||||
while getopts "cO:P:" name; do
|
||||
case "$name" in
|
||||
c)
|
||||
clean=1
|
||||
;;
|
||||
O)
|
||||
export "${OPTARG%%=*}"="${OPTARG#*=}"
|
||||
;;
|
||||
P)
|
||||
#we can ignore it
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user