Skip to content

Commit

Permalink
$EUID may be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
rednoah committed Apr 13, 2024
1 parent 640e868 commit 77470c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/opt/share/activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ docker run --rm -it -v data:/data -e PUID=$(id -u) -e PGID=$(id -g) rednoah/file
"


if [ "$EUID" -eq 0 ]; then
if [ "$(id -u)" -eq 0 ]; then
echo -e '
\033[38;5;202m
!!! YOU ARE RUNNING AS ROOT AND NOT AS NORMAL USER !!!
Expand Down

0 comments on commit 77470c3

Please sign in to comment.