diff --git a/makepkg.sh b/makepkg.sh index 4fb1abf..4009d51 100755 --- a/makepkg.sh +++ b/makepkg.sh @@ -11,6 +11,7 @@ usage() { echo " -m, =be|fe|all be: only process back-end code, default if non input" echo " fe: only process front-end code" echo " all: process all include be and fe" + echo " -c, =ba ba: customized for BA OMC" } pkgtype="" @@ -50,9 +51,9 @@ while getopts "m:r:c:d" option; do ;; c) c_arg=$(echo $OPTARG | tr '[:upper:]' '[:lower:]') - if [ "c_arg" == "ba" ]; then + if [ "${c_arg}" == "ba" ]; then pkgtype="badeb" - be_args+=("$pkgtype") + be_args+=("${pkgtype}") fi ;; \?)