fix SD image CI: use find -L to follow symlinks in Nix store
The built image is a symlink in the Nix store. find with -type f skips symlinks, causing 'No image found' error.
This commit is contained in:
parent
c141e22feb
commit
db260115a9
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ jobs:
|
|||
--extra-platforms aarch64-linux \
|
||||
--out-link result-${{ matrix.host }}
|
||||
|
||||
IMAGE_PATH=$(find result-${{ matrix.host }} -name "*.img.zst" -type f | head -1)
|
||||
IMAGE_PATH=$(find -L result-${{ matrix.host }} -name "*.img.zst" | head -1)
|
||||
if [ -z "$IMAGE_PATH" ]; then
|
||||
echo "Error: No image found!"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue