summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-15 21:55:54 +0100
committerdavidovski <david@davidovski.xyz>2022-05-15 21:55:54 +0100
commit038a56d555833d2db3af772b890a8fc8c283120e (patch)
treeacf67de79326127d58dd5be681525de39f1836dd /src/xi.sh
parenta15d9c48b3677da48cba37d211fad9f4881f5bb8 (diff)
added installer tui
Diffstat (limited to 'src/xi.sh')
-rwxr-xr-xsrc/xi.sh7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/xi.sh b/src/xi.sh
index f63bfd7..b16a36e 100755
--- a/src/xi.sh
+++ b/src/xi.sh
@@ -67,15 +67,10 @@ ${BLUE}Available Commands:
${RED}Usage: xi [options] command...
EOF
}
-checkroot () {
- [ "$(id -u)" = "0" ] || {
- printf "${RED}Please run as root!\n"
- exit 1
- }
-}
[ -z "${LIBDIR}" ] && LIBDIR=/usr/lib/xipkg
+[ -f "/usr/lib/xilib.sh" ] && . /usr/lib/xilib.sh
[ -f ${LIBDIR}/VERSION ] && VERSION=$(cat ${LIBDIR}/VERSION) || VERSION=
export VERSION