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
1 changed files with 5 additions and 1 deletions

6
ghcup
View File

@ -1024,13 +1024,17 @@ download_to_stdout() {
# @DESCRIPTION:
# Makes a temporary directory.
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"
mktemp -d -t ghcup
else
debug_message "mktemp -d"
mktemp -d
fi
unset mktemp_mydistro
}
# @FUNCTION: unpack