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:
parent
717a8256a6
commit
4c548c1037
3
ghcup
3
ghcup
@ -1186,7 +1186,8 @@ install_ghc() {
|
|||||||
if ${FORCE} ; then
|
if ${FORCE} ; then
|
||||||
echo "GHC already installed in ${inst_location}, overwriting!"
|
echo "GHC already installed in ${inst_location}, overwriting!"
|
||||||
else
|
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
|
fi
|
||||||
first_install=false
|
first_install=false
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user