Fix the indentation in env files
This changes the indentation from tabs to spaces, since tabs get stripped by the heredoc.
This commit is contained in:
parent
655ee432f8
commit
2ebff1e887
@ -281,18 +281,18 @@ download_ghcup() {
|
|||||||
# we may overwrite this in adjust_bashrc
|
# we may overwrite this in adjust_bashrc
|
||||||
cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file"
|
cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file"
|
||||||
case ":\$PATH:" in
|
case ":\$PATH:" in
|
||||||
*:"${GHCUP_BIN}":*)
|
*:"${GHCUP_BIN}":*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
export PATH="${GHCUP_BIN}:\$PATH"
|
export PATH="${GHCUP_BIN}:\$PATH"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
case ":\$PATH:" in
|
case ":\$PATH:" in
|
||||||
*:"\$HOME/.cabal/bin":*)
|
*:"\$HOME/.cabal/bin":*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
export PATH="\$HOME/.cabal/bin:\$PATH"
|
export PATH="\$HOME/.cabal/bin:\$PATH"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -382,36 +382,36 @@ adjust_bashrc() {
|
|||||||
1)
|
1)
|
||||||
cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file"
|
cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file"
|
||||||
case ":\$PATH:" in
|
case ":\$PATH:" in
|
||||||
*:"${GHCUP_BIN}":*)
|
*:"${GHCUP_BIN}":*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
export PATH="${GHCUP_BIN}:\$PATH"
|
export PATH="${GHCUP_BIN}:\$PATH"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
case ":\$PATH:" in
|
case ":\$PATH:" in
|
||||||
*:"\$HOME/.cabal/bin":*)
|
*:"\$HOME/.cabal/bin":*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
export PATH="\$HOME/.cabal/bin:\$PATH"
|
export PATH="\$HOME/.cabal/bin:\$PATH"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
2)
|
2)
|
||||||
cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file"
|
cat <<-EOF > "${GHCUP_DIR}"/env || die "Failed to create env file"
|
||||||
case ":\$PATH:" in
|
case ":\$PATH:" in
|
||||||
*:"\$HOME/.cabal/bin":*)
|
*:"\$HOME/.cabal/bin":*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
export PATH="\$PATH:\$HOME/.cabal/bin"
|
export PATH="\$PATH:\$HOME/.cabal/bin"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
case ":\$PATH:" in
|
case ":\$PATH:" in
|
||||||
*:"${GHCUP_BIN}":*)
|
*:"${GHCUP_BIN}":*)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
export PATH="\$PATH:${GHCUP_BIN}"
|
export PATH="\$PATH:${GHCUP_BIN}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
EOF
|
EOF
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user