From 13b27101f13cff92198b09bb94949b502d269b30 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 8 Mar 2021 16:18:26 +0100 Subject: [PATCH] Create fish config dir if it doesn't exist Fixes #106 --- bootstrap-haskell | 1 + 1 file changed, 1 insertion(+) diff --git a/bootstrap-haskell b/bootstrap-haskell index 38ed934..a78a840 100755 --- a/bootstrap-haskell +++ b/bootstrap-haskell @@ -273,6 +273,7 @@ if [ -z "${BOOTSTRAP_HASKELL_NONINTERACTIVE}" ] ; then "") break ;; fish) if ! grep -q "ghcup-env" "${GHCUP_PROFILE_FILE}" ; then + mkdir -p "${GHCUP_PROFILE_FILE%/*}" echo "# ghcup-env" >> "${GHCUP_PROFILE_FILE}" echo "set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX \$HOME" >> "${GHCUP_PROFILE_FILE}" echo "test -f $GHCUP_DIR/env ; and set -gx PATH \$HOME/.cabal/bin $GHCUP_BIN \$PATH" >> "${GHCUP_PROFILE_FILE}"