Enable cross-compatibility in macOS using both native mktemp and coreutils mktemp.

Tested on macOS 10.14.6 Mojave running coretuils mktemp version: 8.31
This commit is contained in:
Ricardo Ander-Egg 2020-01-15 09:16:53 -05:00
parent 319377fad2
commit 71fea14508

4
ghcup
View File

@ -1031,8 +1031,8 @@ mktempdir() {
mktemp_mydistro=$(get_distro_alias "$(get_distro_name)") mktemp_mydistro=$(get_distro_alias "$(get_distro_name)")
if test "${mktemp_mydistro}" = "darwin"; then if test "${mktemp_mydistro}" = "darwin"; then
debug_message "mktemp -d -t ghcup" debug_message "mktemp -d -t ghcup.XXXXXXX"
mktemp -d -t ghcup mktemp -d -t ghcup.XXXXXXX
else else
debug_message "mktemp -d" debug_message "mktemp -d"
mktemp -d mktemp -d