crystal.buildCrystalPackage: fix installCheckPhase glob pattern

The installCheckPhase uses `[ $f == $out/bin/*.dwarf ]` to skip .dwarf
files, but when no .dwarf files exist, the glob doesn't expand and bash's
`[` builtin fails with "unary operator expected".

Switch to `[[ ]]` which handles glob patterns correctly without expansion.
This commit is contained in:
david amick
2026-01-07 13:34:22 -08:00
parent abaa301b09
commit c2ba8dc072
@@ -196,7 +196,7 @@ stdenv.mkDerivation (
installCheckPhase =
args.installCheckPhase or ''
for f in $out/bin/*; do
if [ $f == $out/bin/*.dwarf ]; then
if [[ $f == *.dwarf ]]; then
continue
fi
$f --help > /dev/null