diff options
author | merakor <cem@ckyln.com> | 2020-11-09 13:25:46 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-11-09 13:25:46 +0000 |
commit | 981961fbfa71af661ac611a13a0707b407d07643 (patch) | |
tree | 4d165a0a46dc5736e88ecc865da40f6d83e09e96 /src/cpt-remove | |
parent | a28f051f36c99ea919097d1dcc2daf7da23ed980 (diff) | |
parent | c10e49d9caf08d0729024f5cf770634a739ebbe3 (diff) | |
download | cpt-981961fbfa71af661ac611a13a0707b407d07643.tar.gz |
Merge branch 'master' into full-pkg-pathfull-pkg-path
FossilOrigin-Name: 116d2928ca61b3db6ae9c2c7719838b488db938f6f1ca76b483d4ef9da7cf3d0
Diffstat (limited to 'src/cpt-remove')
-rwxr-xr-x | src/cpt-remove | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/cpt-remove b/src/cpt-remove index b6fed58..bcf5047 100755 --- a/src/cpt-remove +++ b/src/cpt-remove @@ -1,8 +1,6 @@ #!/bin/sh -ef # Remove 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 @@ -23,6 +18,5 @@ eval set -- "$REST" } create_cache - pkg_order "$@" for pkg in $redro; do pkg_remove "$pkg" "${CPT_FORCE:-check}"; done |