Mktemp not working properly on macOS
OS version: 10.14.6 mktemp: version 8.31 from GNU coreutils (installed with brew)
When trying to install ghcup the command ghcup --cache install throws an error stating there are "X's" missing in the template.
I just changed mktemp -d -t ghcup
to mktemp -d -t ghcup.XXXXXXXX
when mktemp_mydistro = "darwin"
and ran the install commands by hand and everything worked perfectly.
When using the native mktemp from macOS located in /usr/bin it works as expected, and with the modified command the folder created is named something like: "ghcup.XXXXXXXX.uGWKmA7c"
Maybe the script could be modified to enable cross compatibility both with native mktemp and the one from coreutils.
Related to: !124 (merged) !126 (merged) !130 (merged)