From 15356c8ce51e0e2d4dc0f630f300c306e1d734a6 Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Mon, 6 Oct 2014 12:44:48 +0200 Subject: [PATCH] Don't check for UID 0 on Cygwin --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4ae64ca..261a6ce 100755 --- a/install.sh +++ b/install.sh @@ -32,7 +32,7 @@ if [[ "$1" != "all" ]] && [[ "$1" != "client" ]] && [[ "$1" != "server" ]]; then exit 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." exit 1 fi