From efdf3bcc1bd8e9ce4364d3ba2c0342408986a6eb Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Thu, 7 May 2026 11:53:29 +0300 Subject: [PATCH] Fix root detection by checking UID --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7ba2961..6b61a12 100644 --- a/install.sh +++ b/install.sh @@ -390,7 +390,7 @@ verify_common() { if [ "$(id -u)" -eq 0 ]; then SUDO="" - if [ -n "${USER:-}" ] && [ "$USER" != "root" ]; then + if [ "$(id -u)" -ne 0 ]; then die "$L_ERR_INCORR_ROOT_LOGIN" fi else