From ce314365dd6cc40dbb9ade6cb13fce43e1d18fdf Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Sun, 30 Sep 2018 14:41:18 +0800 Subject: [PATCH] Fix status message Should only appear when we have actually removed GHC. --- ghcup | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ghcup b/ghcup index 532687d..51ce2eb 100755 --- a/ghcup +++ b/ghcup @@ -706,14 +706,14 @@ rm_ghc() { edo rm "${f}" done edo rm -r "${inst_location}" + + status_message "Successfully removed GHC ${myghcver}, you might have to" + status_message "set the currently active GHC now to fix dangling symlinks:" + status_message " ghcup set " else warning_message "${myghcver} doesn't appear to be installed, skipping" fi - status_message "Successfully removed GHC ${myghcver}, you might have to" - status_message "set the currently active GHC now to fix dangling symlinks:" - status_message " ghcup set " - unset myghcver inst_location f }