Fix status message

Should only appear when we have actually removed GHC.
This commit is contained in:
Julian Ospald 2018-09-30 14:41:18 +08:00
parent 41199b5ebd
commit ce314365dd
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

6
ghcup
View File

@ -706,13 +706,13 @@ rm_ghc() {
edo rm "${f}" edo rm "${f}"
done done
edo rm -r "${inst_location}" edo rm -r "${inst_location}"
else
warning_message "${myghcver} doesn't appear to be installed, skipping"
fi
status_message "Successfully removed GHC ${myghcver}, you might have to" status_message "Successfully removed GHC ${myghcver}, you might have to"
status_message "set the currently active GHC now to fix dangling symlinks:" status_message "set the currently active GHC now to fix dangling symlinks:"
status_message " ghcup set <ghcver>" status_message " ghcup set <ghcver>"
else
warning_message "${myghcver} doesn't appear to be installed, skipping"
fi
unset myghcver inst_location f unset myghcver inst_location f
} }