aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-install
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-install')
-rwxr-xr-xsrc/cpt-install10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cpt-install b/src/cpt-install
index 0ee6816..92d8eee 100755
--- a/src/cpt-install
+++ b/src/cpt-install
@@ -2,15 +2,15 @@
# Install a package
# shellcheck disable=1091
-if command -v cpt-lib >/dev/null; then . cpt-lib; else . ./cpt-lib; fi
+if [ -f ./cpt-lib ]; then . ./cpt-lib; else . cpt-lib; fi
parser_definition() {
setup REST -- "usage: ${0##*/} [pkg...]"
msg -- '' 'Options:'
- flag CPT_FORCE -f --force -- "Force installation"
- param CPT_ROOT --root -- "Use an alternate root directory"
- disp :usage -h --help -- "Show this help message"
- disp :version -v --version -- "Print version information"
+ flag CPT_FORCE -f --force init:="$CPT_FORCE" -- "Force installation"
+ param CPT_ROOT --root init:="$CPT_ROOT" -- "Use an alternate root directory"
+ disp :usage -h --help -- "Show this help message"
+ disp :version -v --version -- "Print version information"
}
eval "$(getoptions parser_definition parse "$0")"