From 2ebff1e887871d86ed8c7949a8a606fd75e0f158 Mon Sep 17 00:00:00 2001 From: Phil Ruffwind Date: Fri, 24 Dec 2021 14:38:48 -0800 Subject: [PATCH] Fix the indentation in env files This changes the indentation from tabs to spaces, since tabs get stripped by the heredoc. --- scripts/bootstrap/bootstrap-haskell | 60 ++++++++++++++--------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/scripts/bootstrap/bootstrap-haskell b/scripts/bootstrap/bootstrap-haskell index 45af506..cf6f0b9 100755 --- a/scripts/bootstrap/bootstrap-haskell +++ b/scripts/bootstrap/bootstrap-haskell @@ -281,18 +281,18 @@ download_ghcup() { # we may overwrite this in adjust_bashrc cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file" case ":\$PATH:" in - *:"${GHCUP_BIN}":*) - ;; - *) - export PATH="${GHCUP_BIN}:\$PATH" - ;; + *:"${GHCUP_BIN}":*) + ;; + *) + export PATH="${GHCUP_BIN}:\$PATH" + ;; esac case ":\$PATH:" in - *:"\$HOME/.cabal/bin":*) - ;; - *) - export PATH="\$HOME/.cabal/bin:\$PATH" - ;; + *:"\$HOME/.cabal/bin":*) + ;; + *) + export PATH="\$HOME/.cabal/bin:\$PATH" + ;; esac EOF @@ -382,36 +382,36 @@ adjust_bashrc() { 1) cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file" case ":\$PATH:" in - *:"${GHCUP_BIN}":*) - ;; - *) - export PATH="${GHCUP_BIN}:\$PATH" - ;; + *:"${GHCUP_BIN}":*) + ;; + *) + export PATH="${GHCUP_BIN}:\$PATH" + ;; esac case ":\$PATH:" in - *:"\$HOME/.cabal/bin":*) - ;; - *) - export PATH="\$HOME/.cabal/bin:\$PATH" - ;; + *:"\$HOME/.cabal/bin":*) + ;; + *) + export PATH="\$HOME/.cabal/bin:\$PATH" + ;; esac EOF ;; 2) cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file" case ":\$PATH:" in - *:"\$HOME/.cabal/bin":*) - ;; - *) - export PATH="\$PATH:\$HOME/.cabal/bin" - ;; + *:"\$HOME/.cabal/bin":*) + ;; + *) + export PATH="\$PATH:\$HOME/.cabal/bin" + ;; esac case ":\$PATH:" in - *:"${GHCUP_BIN}":*) - ;; - *) - export PATH="\$PATH:${GHCUP_BIN}" - ;; + *:"${GHCUP_BIN}":*) + ;; + *) + export PATH="\$PATH:${GHCUP_BIN}" + ;; esac EOF ;;