We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d521392 + dd25d01 commit cc7913aCopy full SHA for cc7913a
APP-MANAGER
@@ -1,6 +1,6 @@
1
#!/usr/bin/env bash
2
3
-AMVERSION="9.5-5"
+AMVERSION="9.5-7"
4
5
# Determine main repository and branch
6
AMREPO="https://raw.githubusercontent.com/ivan-hc/AM/main"
@@ -42,7 +42,7 @@ LightBlue='\033[1;34m'
42
DIVIDING_LINE="-----------------------------------------------------------------------------"
43
44
# Prevent the use of "sudo" ("AM")
45
-if [ -n "${SUDO_USER:-$DOAS_USER}" ]; then
+if [ "$(id -u)" = 0 ] && [ -n "${SUDO_USER:-$DOAS_USER}" ]; then
46
printf "\n Please do not use \"sudo\" to execute \"%b\", try again.\n\n" "$CLI"
47
exit 1
48
fi
0 commit comments