Skip to content

Commit

Permalink
Fix [: -v: unary operator expected (input-output-hk#158)
Browse files Browse the repository at this point in the history
* Fix `[: -v: unary operator expected`

```
/nix/store/1zcy75q3dr61bka5h4r8rf3kv8k18kw3-ghc96-iog-env.sh: line 1944: [: -v: unary operator expected
```
e.g. seen on https://github.com/IntersectMBO/cardano-node/actions/runs/8977554294/job/24656515205?pr=5817, in the Build all step.

* Update quirks.nix
  • Loading branch information
yvan-sraka authored May 13, 2024
1 parent 559157f commit 086bfa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quirks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
else
PREFIX="Hint:"
fi
if [ "$GITHUB_ACTIONS" = "true" ] || [ -v CODESPACE_TOKEN ]; then
if [ "$GITHUB_ACTIONS" = "true" ] || [ "$'' + ''{CODESPACE_TOKEN+x}" = "x" ]; then
echo "$PREFIX to reproduce this environment locally, use either:" \
"\`nix develop github:input-output-hk/devx#${flavor}\`, or" \
"\`docker run -it -v \$(pwd):/workspaces ghcr.io/input-output-hk/devx-devcontainer:x86_64-linux.${flavor}\`"
fi
if [ -v CODESPACE_TOKEN ]; then
if [ "$'' + ''{CODESPACE_TOKEN+x}" = "x" ]; then
echo "Quirks:"
echo -e "\tThe Haskell VSCode extension might ask you \"How do you want the extension to manage/discover HLS and the relevant toolchain?\""
echo -e "\tChoose \"Manually via PATH\", not \"Automatically via GHCup\""
Expand Down

0 comments on commit 086bfa5

Please sign in to comment.