aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-install
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-install')
-rwxr-xr-xsrc/cpt-install7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cpt-install b/src/cpt-install
index 4dadcda..b046e02 100755
--- a/src/cpt-install
+++ b/src/cpt-install
@@ -1,8 +1,6 @@
#!/bin/sh
# Install a package
-if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
-
parser_definition() {
setup REST help:usage -- "usage: ${0##*/} [pkg...]"
msg -- '' 'Options:'
@@ -10,10 +8,7 @@ parser_definition() {
global_options
}
-eval "$(getoptions parser_definition parse "$0")"
-
-parse "$@"
-eval set -- "$REST"
+if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
[ "$1" ] || set -- "${PWD##*/}"; export CPT_PATH=${PWD%/*}:$CPT_PATH