From d1cb7127af805236eeb2b0970e25f81de9fd4d8a Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Fri, 4 Jan 2019 13:49:56 +0800 Subject: [PATCH] Fix travis with latest shellcheck --- ghcup | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ghcup b/ghcup index 0c03777..f3bce34 100755 --- a/ghcup +++ b/ghcup @@ -1777,7 +1777,7 @@ if ! is_sourced ; then break;; esac done - [ "${GHC_VER}" ] || set_usage + [ -n "${GHC_VER}" ] || set_usage set_ghc "${GHC_VER}" break;; upgrade) @@ -1789,7 +1789,7 @@ if ! is_sourced ; then break;; esac done - if [ "${TARGET_LOCATION}" ] ; then + if [ -n "${TARGET_LOCATION}" ] ; then upgrade "${TARGET_LOCATION}" else upgrade "$(dirname "$(posix_realpath "${SOURCE}")")" @@ -1823,7 +1823,7 @@ if ! is_sourced ; then break;; esac done - [ "${GHC_VER}" ] || rm_usage + [ -n "${GHC_VER}" ] || rm_usage rm_ghc "${GHC_VER}" break;; install-cabal) @@ -1870,8 +1870,8 @@ if ! is_sourced ; then break;; esac done - [ "${GHC_VER}" ] || compile_usage - [ "${BOOTSTRAP_GHC}" ] || compile_usage + [ -n "${GHC_VER}" ] || compile_usage + [ -n "${BOOTSTRAP_GHC}" ] || compile_usage compile_ghc "${GHC_VER}" "${BOOTSTRAP_GHC}" "${BUILD_CONFIG}" break;; debug-info)