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:
parent
e529e551d9
commit
8817bd394b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user