Changed "local" mydistro to mktemp_mydistro to avoid global name conflicts
This commit is contained in:
parent
9a087197c9
commit
f4b8a209c7
6
ghcup
6
ghcup
@ -1024,9 +1024,9 @@ download_to_stdout() {
|
|||||||
# @DESCRIPTION:
|
# @DESCRIPTION:
|
||||||
# Makes a temporary directory.
|
# Makes a temporary directory.
|
||||||
mktempdir() {
|
mktempdir() {
|
||||||
mydistro=$(get_distro_alias "$(get_distro_name)")
|
mktemp_mydistro=$(get_distro_alias "$(get_distro_name)")
|
||||||
|
|
||||||
if test "${mydistro}" = "darwin"; then
|
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
|
||||||
@ -1034,7 +1034,7 @@ mktempdir() {
|
|||||||
mktemp -d
|
mktemp -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
unset mydistro
|
unset mktemp_mydistro
|
||||||
}
|
}
|
||||||
|
|
||||||
# @FUNCTION: unpack
|
# @FUNCTION: unpack
|
||||||
|
Loading…
Reference in New Issue
Block a user