Tweak exit code for 'ghcup install'

If a GHC is already installed, we shouldn't treat it as an
error.
This commit is contained in:
Julian Ospald 2018-12-01 13:35:35 +08:00
parent 717a8256a6
commit 4c548c1037
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28

3
ghcup
View File

@ -1186,7 +1186,8 @@ install_ghc() {
if ${FORCE} ; then
echo "GHC already installed in ${inst_location}, overwriting!"
else
die "GHC already installed in ${inst_location}, use --force to overwrite"
warning_message "GHC already installed in ${inst_location}, use --force to overwrite"
exit 0
fi
first_install=false
fi