From 8711a4a3188169b03f570f1cb3e6d95d03397b01 Mon Sep 17 00:00:00 2001 From: Olius Date: Fri, 6 Dec 2019 20:59:04 -0500 Subject: [PATCH] Added mydistro definition to fix mktempdir --- ghcup | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ghcup b/ghcup index a3ab95f..60b228a 100755 --- a/ghcup +++ b/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