Permalink
Browse files

Small tweak to root/uid 0 detection.

  • Loading branch information...
1 parent 3dfe9d8 commit a711ca3c9a7f16c45e0352850ca5fb5c6930d917 @johnezang johnezang committed Jun 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 install.sh
View
@@ -55,7 +55,7 @@ if [ ${DIFF_COPYPNG} == 0 ] && [ ${DIFF_COPYPNGFILE_XCSPEC} == 0 ] && [ ${DIFF_N
if [ "$1" == "-check" ]; then echo "The enhanced 'Compress PNG Files' Xcode iPhoneOS Build System Support Plug-In in '${DEVELOPER_DIR}' requires updating."; exit 1; fi;
-if [ "${UID}" != 0 ]; then
+if [ $(/usr/bin/id -u) != "0" ]; then
if [ "${DEVELOPER_DIR_SET}" == "Yes" ]; then SUDO_DEVTOOLS="DEVELOPER_DIR=\"\$DEVELOPER_DIR\" "; else SUDO_DEVTOOLS=""; fi;
echo "Warning: In general, this script must be executed as the super user in order to modify the Xcode Plug-In files.\nWarning: Consider running this script as 'sudo ${SUDO_DEVTOOLS}\"$0\"' instead.\n";
fi;

0 comments on commit a711ca3

Please sign in to comment.