Improve message when no GHC is installed
This commit is contained in:
parent
7d9631c7e4
commit
ba80c6e409
8
ghcup
8
ghcup
@ -720,8 +720,12 @@ show_ghc() {
|
||||
|
||||
echo "Installed GHCs:"
|
||||
for i in "${GHC_LOCATION}"/* ; do
|
||||
[ -e "${i}" ] || die "Something went wrong, ${i} does not exist!"
|
||||
echo " $(basename "${i}")"
|
||||
if [ -e "${i}" ] ; then
|
||||
echo " $(basename "${i}")"
|
||||
else # directory is empty
|
||||
echo " None"
|
||||
exit 0
|
||||
fi
|
||||
done
|
||||
|
||||
if [ -n "${current_ghc}" ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user