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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user