compressFirmwareXz: fail on broken symlinks

This would have caught the last two issues we had with compression.
This commit is contained in:
Alyssa Ross 2024-01-28 11:56:36 +01:00
parent a136def4f7
commit 24bb06069f
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -21,4 +21,7 @@ runCommand "${firmware.name}-xz" args ''
ln -vs -- "''${target/^${firmware}/$out}" "$out/$link" ln -vs -- "''${target/^${firmware}/$out}" "$out/$link"
fi fi
done done
echo "Checking for broken symlinks:"
find -L $out -type l -print -execdir false -- '{}' '+'
'' ''