Skip to content

Commit 5d690f3

Browse files
committed
If NOCHROOT equal 1, not check UID
1 parent d10d386 commit 5d690f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

archbashstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ EOF
2727
exit 0
2828
fi
2929

30-
[ "$(id -u)" -ne 0 ] && die "This script must be run with root privileges"
30+
[ "$NOCHROOT" != 1 ] && [ "$(id -u)" -ne 0 ] && die "This script must be run with root privileges"
3131

3232
if [ ! "$@" ]; then
3333
die "Installation folder not specified"

0 commit comments

Comments
 (0)