Skip to content

Commit 82eb2a0

Browse files
authored
Fix CODESPACE_TOKEN: unbound variable (#152)
Revision (input-output-hk/devx): 0a5cefb. /nix/store/2nigzj6x6d0qkzqvvyf5604g0581r8z6-ghc810-env.sh: line 1937: CODESPACE_TOKEN: unbound variable CABAL_DIR set to /Users/runner/.cabal-devx Notice: Hint: to reproduce this environment locally, use either: `nix develop github:input-output-hk/devx#ghc8107`, or `docker run -it -v $(pwd):/workspaces ghcr.io/input-output-hk/devx-devcontainer:x86_64-linux.ghc8107`
1 parent 5a57830 commit 82eb2a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

quirks.nix

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
else
2727
PREFIX="Hint:"
2828
fi
29-
if [ "$GITHUB_ACTIONS" = "true" ] || [ -n "$CODESPACE_TOKEN" ]; then
29+
if [ "$GITHUB_ACTIONS" = "true" ] || [ -v CODESPACE_TOKEN ]; then
3030
echo "$PREFIX to reproduce this environment locally, use either:" \
3131
"\`nix develop github:input-output-hk/devx#${flavor}\`, or" \
3232
"\`docker run -it -v \$(pwd):/workspaces ghcr.io/input-output-hk/devx-devcontainer:x86_64-linux.${flavor}\`"
3333
fi
34-
if [ -n "$CODESPACE_TOKEN" ]; then
34+
if [ -v CODESPACE_TOKEN ]; then
3535
echo "Quirks:"
3636
echo -e "\tThe Haskell VSCode extension might ask you \"How do you want the extension to manage/discover HLS and the relevant toolchain?\""
3737
echo -e "\tChoose \"Manually via PATH\", not \"Automatically via GHCup\""

0 commit comments

Comments
 (0)