Fix a bug that was exposed by the SXEmacs configure script.
[pkgusr] / usr / lib / pkgusr / mkdir
index 7ca6d26..75ceaa8 100755 (executable)
@@ -23,7 +23,7 @@ if [ ! -n "$DAISY_CHAIN" ]; then
     exit 1
 fi
 
-if [ $UID == 0 ]; then
+if [ $(id -u) == 0 ]; then
     echo 1>&2 '***' $(dirname $0) should not be in root\'s \$PATH
     echo 1>&2 '***' Call '"'$DAISY_CHAIN $@'"' directly.
     exit 1