From a10c2dbd22c303dde0e8005076b0aa4944356a5b Mon Sep 17 00:00:00 2001 From: Jan Felix Langenbach Date: Tue, 3 Dec 2019 23:21:00 +0100 Subject: [PATCH] Fix test -n that should be test -z --- ghcup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghcup b/ghcup index 1f0ca1e..dfab98b 100755 --- a/ghcup +++ b/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