From f4b8a209c7bf5bdf6799283aa0138647fd0b3102 Mon Sep 17 00:00:00 2001 From: Olius Date: Fri, 6 Dec 2019 22:46:21 -0500 Subject: [PATCH] Changed "local" mydistro to mktemp_mydistro to avoid global name conflicts --- ghcup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghcup b/ghcup index ff9ea3f..f48116d 100755 --- a/ghcup +++ b/ghcup @@ -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