lots of misc updates
[distro-setup] / filesystem / etc / profile.d / environment.sh
index 17b3b06208c82b19a1a1a94c61e92658a33add9d..bc816738355aba0f3a7a290ed853b106cbd6e2f3 100644 (file)
@@ -60,7 +60,8 @@ fi
 # every user in a same group, so if you copy files there with exact
 # perms, that is probably not what you want. I don't use a system like
 # that. I don't care much either way, but the ubuntu one seems a bit
-# more user friendly.
-if (( EUID >= 1000 )); then
+# more user friendly, and copying files between them is a pita with
+# different umasks.
+if test "$(id -u)" -ge 1000; then
     umask 002
 fi