Added mydistro definition to fix mktempdir
This commit is contained in:
parent
c19f69d41b
commit
8711a4a318
3
ghcup
3
ghcup
@ -1024,6 +1024,7 @@ download_to_stdout() {
|
||||
# @DESCRIPTION:
|
||||
# Makes a temporary directory.
|
||||
mktempdir() {
|
||||
mydistro=$(get_distro_alias "$(get_distro_name)")
|
||||
if test "${mydistro}" = "darwin"; then
|
||||
debug_message "mktemp -d -t ghcup"
|
||||
mktemp -d -t ghcup
|
||||
@ -1031,6 +1032,8 @@ mktempdir() {
|
||||
debug_message "mktemp -d"
|
||||
mktemp -d
|
||||
fi
|
||||
|
||||
unset mydistro
|
||||
}
|
||||
|
||||
# @FUNCTION: unpack
|
||||
|
Loading…
Reference in New Issue
Block a user