From 534ab7fc386021e227e3fb2ea2902af6a75159a1 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 12 Apr 2022 12:48:46 +0100 Subject: fixed non-posix comparison --- src/xi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/xi.sh') diff --git a/src/xi.sh b/src/xi.sh index 1c38f99..3a133a9 100755 --- a/src/xi.sh +++ b/src/xi.sh @@ -130,7 +130,7 @@ if [ "$#" = "0" ]; then show_xipkg_stats else # showing stats doesn't require root, so we can only check when we are here - [ "$(id -u)" == "0" ] || { + [ "$(id -u)" = "0" ] || { printf "${RED}Please run as root!\n" exit 1 } -- cgit v1.2.1