Fix travis with latest shellcheck
This commit is contained in:
parent
79881100ff
commit
d1cb7127af
10
ghcup
10
ghcup
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user