summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-03-03 00:42:23 +0000
committerdavidovski <david@davidovski.xyz>2022-03-03 00:42:23 +0000
commit6bc227cbffd0caa08d382f56df48cbb34f2afc59 (patch)
treeb67f1f91ccc7665bd2f1c41584de8bd4fb18e851 /src/xi.sh
parent24b636fadc9e0503f662e4a04c8e062556a76e20 (diff)
fixed removing packagesv1.0.4
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-xsrc/xi.sh7
1 files changed, 4 insertions, 3 deletions
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")