diff --git a/bootstrap-haskell b/bootstrap-haskell index 244286c..8f6c762 100755 --- a/bootstrap-haskell +++ b/bootstrap-haskell @@ -15,6 +15,14 @@ edo() "$@" || die "\"$*\" failed!" } +eghcup() { + if [ -z "${BOOTSTRAP_HASKELL_VERBOSE}" ] ; then + edo ghcup "$@" + else + edo ghcup --verbose "$@" + fi +} + echo echo "Welcome to Haskell!" echo @@ -44,7 +52,7 @@ edo mkdir -p "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/bin if command -V "ghcup" >/dev/null 2>&1 ; then if [ -z "${BOOTSTRAP_HASKELL_NO_UPGRADE}" ] ; then - edo ghcup upgrade + eghcup upgrade fi else edo curl --silent https://gitlab.haskell.org/haskell/ghcup/raw/master/ghcup > "${GHCUP_INSTALL_BASE_PREFIX}"/.ghcup/bin/ghcup @@ -72,10 +80,10 @@ if [ -z "${BOOTSTRAP_HASKELL_NONINTERACTIVE}" ] ; then read -r answer > "${HOME}/.bashrc"