more robust: prefer Windows $USERNAME;
authorwenzelm
Thu, 06 Oct 2022 20:13:55 +0200
changeset 76273 4c7e8d01f6b9
parent 76272 b8072e5a1637
child 76274 793171d7800b
more robust: prefer Windows $USERNAME;
Admin/Windows/Cygwin/isabelle/postinstall
--- a/Admin/Windows/Cygwin/isabelle/postinstall	Thu Oct 06 17:24:55 2022 +0200
+++ b/Admin/Windows/Cygwin/isabelle/postinstall	Thu Oct 06 20:13:55 2022 +0200
@@ -4,7 +4,7 @@
 
 bash /etc/postinstall/base-files-mketc.sh.done
 
-mkpasswd -l -u "$USER" -p "$(cygpath -u "$HOMEDRIVE$HOMEPATH\\..")" >/etc/passwd
+mkpasswd -l -u "$USERNAME" -p "$(cygpath -u "$HOMEDRIVE$HOMEPATH\\..")" >/etc/passwd
 
 find -type d -exec setfacl -m default:user::rwx,default:group::r-x,default:other:r-x '{}' +
 find -type d -exec chmod 755 '{}' +