Let the default value for variables be overriden
This commit is contained in:
parent
c290d9266e
commit
3e495db844
@ -66,7 +66,7 @@ _usage()
|
|||||||
clean=0
|
clean=0
|
||||||
install=0
|
install=0
|
||||||
uninstall=0
|
uninstall=0
|
||||||
while getopts "ciuP:" name; do
|
while getopts "ciuO:P:" name; do
|
||||||
case $name in
|
case $name in
|
||||||
c)
|
c)
|
||||||
clean=1
|
clean=1
|
||||||
@ -79,6 +79,9 @@ while getopts "ciuP:" name; do
|
|||||||
install=0
|
install=0
|
||||||
uninstall=1
|
uninstall=1
|
||||||
;;
|
;;
|
||||||
|
O)
|
||||||
|
export "${OPTARG%%=*}"="${OPTARG#*=}"
|
||||||
|
;;
|
||||||
P)
|
P)
|
||||||
PREFIX="$OPTARG"
|
PREFIX="$OPTARG"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user