diff --git a/alpine/alpine-configure-git.sh b/alpine/alpine-configure-git.sh index 83f5302..005ac3b 100755 --- a/alpine/alpine-configure-git.sh +++ b/alpine/alpine-configure-git.sh @@ -1,8 +1,8 @@ #!/bin/ash -if [ $(id -u) = 0 ]; then +if [[ $(id -u) = 0 ]]; then echo "Please do NOT run as root!" -exit 1 + exit 1 fi # git config diff --git a/alpine/alpine-user-customizations.sh b/alpine/alpine-user-customizations.sh index 419c65a..f503971 100755 --- a/alpine/alpine-user-customizations.sh +++ b/alpine/alpine-user-customizations.sh @@ -1,8 +1,8 @@ #!/bin/bash -if [ $(id -u) = 0 ]; then +if [[ $(id -u) = 0 ]]; then echo "Please do NOT run as root!" -exit 1 + exit 1 fi # add aliases