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:
|
# @DESCRIPTION:
|
||||||
# Makes a temporary directory.
|
# Makes a temporary directory.
|
||||||
mktempdir() {
|
mktempdir() {
|
||||||
|
mydistro=$(get_distro_alias "$(get_distro_name)")
|
||||||
if test "${mydistro}" = "darwin"; then
|
if test "${mydistro}" = "darwin"; then
|
||||||
debug_message "mktemp -d -t ghcup"
|
debug_message "mktemp -d -t ghcup"
|
||||||
mktemp -d -t ghcup
|
mktemp -d -t ghcup
|
||||||
@ -1031,6 +1032,8 @@ mktempdir() {
|
|||||||
debug_message "mktemp -d"
|
debug_message "mktemp -d"
|
||||||
mktemp -d
|
mktemp -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
unset mydistro
|
||||||
}
|
}
|
||||||
|
|
||||||
# @FUNCTION: unpack
|
# @FUNCTION: unpack
|
||||||
|
Loading…
Reference in New Issue
Block a user