summaryrefslogtreecommitdiff
path: root/src/xi.sh
diff options
context:
space:
mode:
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