Skip to content

Commit 670e5ad

Browse files
committed
fix non-POSIX [[ ]]
Otherwise CI prints `validate.sh: 332: [[: not found` and the line does nothing (but `validate.sh` continues to run), unless the system shell is `ksh` / `bash` / `zsh`. This may explain haskell#10114 (comment).
1 parent 6eaba73 commit 670e5ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ CABALLISTBIN="${CABAL} list-bin --builddir=$BUILDDIR --project-file=$PROJECTFILE
329329
# of validate.sh
330330
# https://github.com/haskell/cabal/issues/9571
331331
# https://github.com/haskell/cabal/pull/10114
332-
RTSOPTS="$([[ $ARCH = "x86_64-windows" && -z "$CI" ]] && echo "+RTS --io-manager=native" || echo "")"
332+
RTSOPTS="$([ $ARCH = "x86_64-windows" ] && [ -z "$CI" ] && echo "+RTS --io-manager=native" || echo "")"
333333

334334
# header
335335
#######################################################################

0 commit comments

Comments
 (0)