From 8817bd394b0f8ab9c5fde01e4e0dda1e35003f2d Mon Sep 17 00:00:00 2001 From: Yves Date: Thu, 19 Jun 2014 15:19:08 +0000 Subject: [PATCH] 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. --- build/workspaces/update-workspaces.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/workspaces/update-workspaces.sh b/build/workspaces/update-workspaces.sh index 8e22d1f4e0..f9218ade78 100644 --- a/build/workspaces/update-workspaces.sh +++ b/build/workspaces/update-workspaces.sh @@ -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