From 6bc227cbffd0caa08d382f56df48cbb34f2afc59 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 3 Mar 2022 00:42:23 +0000 Subject: fixed removing packages --- src/xi.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/xi.sh') diff --git a/src/xi.sh b/src/xi.sh index 5d76c6c..3ae684a 100755 --- a/src/xi.sh +++ b/src/xi.sh @@ -105,21 +105,20 @@ while getopts ":r:c:qnluyvh" opt; do esac done +# TODO only load these modules when needed . ${LIBDIR}/profile.sh . ${LIBDIR}/util.sh . ${LIBDIR}/validate.sh -. ${LIBDIR}/stats.sh . ${LIBDIR}/query.sh . ${LIBDIR}/sync.sh . ${LIBDIR}/install.sh -. ${LIBDIR}/bootstrap.sh -. ${LIBDIR}/remove.sh . ${LIBDIR}/get.sh shift $((OPTIND-1)) if [ "$#" = "0" ]; then + . ${LIBDIR}/stats.sh show_xipkg_stats else case "$1" in @@ -142,6 +141,7 @@ else ;; "remove") shift + . ${LIBDIR}/remove.sh remove $@ ;; "files") @@ -165,6 +165,7 @@ else ;; "bootstrap") shift + . ${LIBDIR}/bootstrap.sh bootstrap $@ ;; "help") -- cgit v1.2.1