Skip to content

Commit cc7913a

Browse files
authored
Merge pull request #1385 from ivan-hc/dev
Update APP-MANAGER
2 parents d521392 + dd25d01 commit cc7913a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

APP-MANAGER

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
AMVERSION="9.5-5"
3+
AMVERSION="9.5-7"
44

55
# Determine main repository and branch
66
AMREPO="https://raw.githubusercontent.com/ivan-hc/AM/main"
@@ -42,7 +42,7 @@ LightBlue='\033[1;34m'
4242
DIVIDING_LINE="-----------------------------------------------------------------------------"
4343

4444
# Prevent the use of "sudo" ("AM")
45-
if [ -n "${SUDO_USER:-$DOAS_USER}" ]; then
45+
if [ "$(id -u)" = 0 ] && [ -n "${SUDO_USER:-$DOAS_USER}" ]; then
4646
printf "\n Please do not use \"sudo\" to execute \"%b\", try again.\n\n" "$CLI"
4747
exit 1
4848
fi

0 commit comments

Comments
 (0)