Changed "local" mydistro to mktemp_mydistro to avoid global name conflicts

This commit is contained in:
Olius 2019-12-06 22:46:21 -05:00
parent 9a087197c9
commit f4b8a209c7
1 changed files with 3 additions and 3 deletions

6
ghcup
View File

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