Add check to removal of link to share
This commit is contained in:
parent
71d4c2f054
commit
e22ed9dbe2
4
ghcup
4
ghcup
@ -1657,8 +1657,10 @@ rm_ghc() {
|
||||
fi
|
||||
done
|
||||
unset t known_tools
|
||||
# remove share directory
|
||||
# remove dangling symlink to share directory
|
||||
if [ -h "${BIN_LOCATION}/../share" ] && [ ! -e "${BIN_LOCATION}/../share" ] ; then
|
||||
edo rm "${BIN_LOCATION}/../share"
|
||||
fi
|
||||
|
||||
warning_message "Done."
|
||||
warning_message "You may now want to set currently active GHC to a different version via:"
|
||||
|
Loading…
Reference in New Issue
Block a user