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;;
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)