From 038a56d555833d2db3af772b890a8fc8c283120e Mon Sep 17 00:00:00 2001 From: davidovski Date: Sun, 15 May 2022 21:55:54 +0100 Subject: added installer tui --- src/xi.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/xi.sh') 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 -- cgit v1.2.1