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:
parent
319377fad2
commit
71fea14508
4
ghcup
4
ghcup
@ -1031,8 +1031,8 @@ mktempdir() {
|
||||
mktemp_mydistro=$(get_distro_alias "$(get_distro_name)")
|
||||
|
||||
if test "${mktemp_mydistro}" = "darwin"; then
|
||||
debug_message "mktemp -d -t ghcup"
|
||||
mktemp -d -t ghcup
|
||||
debug_message "mktemp -d -t ghcup.XXXXXXX"
|
||||
mktemp -d -t ghcup.XXXXXXX
|
||||
else
|
||||
debug_message "mktemp -d"
|
||||
mktemp -d
|
||||
|
Loading…
Reference in New Issue
Block a user