Fix test -n that should be test -z
This commit is contained in:
parent
bf4c5a5cf1
commit
a10c2dbd22
2
ghcup
2
ghcup
@ -1540,7 +1540,7 @@ set_ghc() {
|
||||
# shellcheck disable=SC2046
|
||||
edo ln $(optionv "-v") -sf "haddock-ghc${target_suffix}" "${BIN_LOCATION}/haddock${target_suffix}"
|
||||
fi
|
||||
if [ -n "${target_suffix}" ] && [ -f "${inst_location}/share" ] ; then
|
||||
if [ -z "${target_suffix}" ] && [ -f "${inst_location}/share" ] ; then
|
||||
# shellcheck disable=SC2046
|
||||
edo ln $(optionv "-v") -sf ghc/"${myghcver}"/share "${BIN_LOCATION}/../share"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user