diff options
Diffstat (limited to 'trunk/src/metapkg')
| -rwxr-xr-x | trunk/src/metapkg | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/trunk/src/metapkg b/trunk/src/metapkg index e83ee4d..d86807e 100755 --- a/trunk/src/metapkg +++ b/trunk/src/metapkg @@ -22,10 +22,11 @@ # COMMON="/usr/libexec/simplepkg/common.sh" +BASENAME="`basename $0`" ROOT="/" function usage { - echo "usage: [ROOT=/otherroot] `basename $0` --option [metapackage]" + echo "usage: [ROOT=/otherroot] $BASENAME --option [metapackage]" echo "options: --install, --remove" exit 1 } @@ -40,7 +41,7 @@ fi if [ -z "$2" ]; then usage else - eval_config `basename $0` -u + eval_config $BASENAME -u fi if [ ! -f "$BASE_CONF/$2.template" ]; then @@ -51,9 +52,9 @@ else unset server fi -if [[ "$1" == "--install" ]]; then +if [ "$1" == "--install" ] || [ "$1" == "install" ]; then install_packages -elif [[ "$1" == "--remove" ]]; then +elif [ "$1" == "--remove" ] || [ "$1" == "remove" ]; then remove_packages else usage |
