From c854db2500321772343d17c2c7aba7dc051f7a62 Mon Sep 17 00:00:00 2001 From: jneira Date: Sun, 19 Dec 2021 15:29:18 +0100 Subject: [PATCH] Avoid error accessing env var --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4266a7add00..b5790928add 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,7 +77,7 @@ jobs: - name: Ensure CABAL_DIR environment variable is set run: | - set +euo + set +e +u [ -v $CABAL_DIR ] && echo "CABAL_DIR: $CABAL_DIR" [ -v $CABAL_DIR ] || CABAL_DIR="~/.cabal" echo "CABAL_DIR=$CABAL_DIR" >> $GITHUB_ENV