Fix travis with latest shellcheck

This commit is contained in:
Julian Ospald 2019-01-04 13:49:56 +08:00
parent 79881100ff
commit d1cb7127af
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
1 changed files with 5 additions and 5 deletions

10
ghcup
View File

@ -1777,7 +1777,7 @@ if ! is_sourced ; then
break;; break;;
esac esac
done done
[ "${GHC_VER}" ] || set_usage [ -n "${GHC_VER}" ] || set_usage
set_ghc "${GHC_VER}" set_ghc "${GHC_VER}"
break;; break;;
upgrade) upgrade)
@ -1789,7 +1789,7 @@ if ! is_sourced ; then
break;; break;;
esac esac
done done
if [ "${TARGET_LOCATION}" ] ; then if [ -n "${TARGET_LOCATION}" ] ; then
upgrade "${TARGET_LOCATION}" upgrade "${TARGET_LOCATION}"
else else
upgrade "$(dirname "$(posix_realpath "${SOURCE}")")" upgrade "$(dirname "$(posix_realpath "${SOURCE}")")"
@ -1823,7 +1823,7 @@ if ! is_sourced ; then
break;; break;;
esac esac
done done
[ "${GHC_VER}" ] || rm_usage [ -n "${GHC_VER}" ] || rm_usage
rm_ghc "${GHC_VER}" rm_ghc "${GHC_VER}"
break;; break;;
install-cabal) install-cabal)
@ -1870,8 +1870,8 @@ if ! is_sourced ; then
break;; break;;
esac esac
done done
[ "${GHC_VER}" ] || compile_usage [ -n "${GHC_VER}" ] || compile_usage
[ "${BOOTSTRAP_GHC}" ] || compile_usage [ -n "${BOOTSTRAP_GHC}" ] || compile_usage
compile_ghc "${GHC_VER}" "${BOOTSTRAP_GHC}" "${BUILD_CONFIG}" compile_ghc "${GHC_VER}" "${BOOTSTRAP_GHC}" "${BUILD_CONFIG}"
break;; break;;
debug-info) debug-info)