1
0
forked from 0ad/0ad

Fix the check if the script is beeing exectued as root for sh (== comparision seems to work for bash but not for sh).

This was SVN commit r15396.
This commit is contained in:
Yves 2014-06-19 15:19:08 +00:00
parent e529e551d9
commit 8817bd394b

View File

@ -1,6 +1,6 @@
#!/bin/sh
if [ "$(id -u)" == "0" ]; then
if [ "$(id -u)" = "0" ]; then
echo "Running as root will mess up file permissions. Aborting ..." 1>&2
exit 1
fi