aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-11-03 09:20:08 +0000
committermerakor <cem@ckyln.com>2021-11-03 09:20:08 +0000
commitea96404333f59474e7460d57c1fe700d4a3818ed (patch)
treed2c3340849d0ce9c4d7e397b18398441c86df77c /contrib
parentff58b810dcbf96e94571c9e339c08a3cef2d713f (diff)
downloadcpt-ea96404333f59474e7460d57c1fe700d4a3818ed.tar.gz
cpt-reset: adapt cpt base changes
FossilOrigin-Name: e64eb9287db0357ae53b1629a4642df15a1611f942097daeab4ff3383650f92f
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cpt-reset4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/cpt-reset b/contrib/cpt-reset
index 2a1b66e..85142af 100755
--- a/contrib/cpt-reset
+++ b/contrib/cpt-reset
@@ -17,7 +17,9 @@
exit 0
}
+# shellcheck source=../src/cpt-lib
. cpt-lib
+
base=$(pkg_get_base nonl)
set --
@@ -29,7 +31,7 @@ done
[ "$1" ] && {
printf 'WARNING: This will remove \033[1m%s\033[m package(s).\n' "$#"
- printf 'Base packages can be redefined in %s\n' "$CPT_ROOT/etc/cpt-base"
+ printf 'Base packages can be redefined in %s\n' "$cpt_base"
printf 'Continue? [Enter/Ctrl+C]\n'
read -r _ && CPT_FORCE=1 cpt-remove "$@"
}