Let the default value for variables be overriden

This commit is contained in:
Pierre Pronchery 2016-12-29 20:10:10 +01:00
parent c290d9266e
commit 3e495db844

View File

@ -66,7 +66,7 @@ _usage()
clean=0
install=0
uninstall=0
while getopts "ciuP:" name; do
while getopts "ciuO:P:" name; do
case $name in
c)
clean=1
@ -79,6 +79,9 @@ while getopts "ciuP:" name; do
install=0
uninstall=1
;;
O)
export "${OPTARG%%=*}"="${OPTARG#*=}"
;;
P)
PREFIX="$OPTARG"
;;