Don't check for UID 0 on Cygwin

This commit is contained in:
Janek Bevendorff 2014-10-06 12:44:48 +02:00
parent a2b5ac8d87
commit 15356c8ce5
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ if [[ "$1" != "all" ]] && [[ "$1" != "client" ]] && [[ "$1" != "server" ]]; then
exit exit
fi fi
if [ $(id -u) -ne 0 ]; then if [ $(id -u) -ne 0 ] && [[ "$(uname -o)" != "Cygwin" ]]; then
echo "ERROR: This script must be run as root." echo "ERROR: This script must be run as root."
exit 1 exit 1
fi fi