Merge remote-tracking branch 'origin/merge-requests/130'

This commit is contained in:
Julian Ospald 2019-12-07 13:56:00 +08:00
commit e349d41e12
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

6
ghcup
View File

@ -1024,13 +1024,17 @@ download_to_stdout() {
# @DESCRIPTION: # @DESCRIPTION:
# Makes a temporary directory. # Makes a temporary directory.
mktempdir() { mktempdir() {
if test "${mydistro}" = "darwin"; then mktemp_mydistro=$(get_distro_alias "$(get_distro_name)")
if test "${mktemp_mydistro}" = "darwin"; then
debug_message "mktemp -d -t ghcup" debug_message "mktemp -d -t ghcup"
mktemp -d -t ghcup mktemp -d -t ghcup
else else
debug_message "mktemp -d" debug_message "mktemp -d"
mktemp -d mktemp -d
fi fi
unset mktemp_mydistro
} }
# @FUNCTION: unpack # @FUNCTION: unpack