Skip to content

Commit

Permalink
build: look for *.gz images as well
Browse files Browse the repository at this point in the history
  • Loading branch information
pktpls committed Nov 6, 2024
1 parent 1ee2b94 commit 903d0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ EOF
|& tee "bin/targets/$target/faillogs/$p.log" >&2

# if build resulted in image files, we can delete the log
cnt="$(find "bin/targets/$target" -name '*.bin' -or -name '*.img' | wc -l)"
cnt="$(find "bin/targets/$target" -name '*.bin' -or -name '*.img' -or -name '*.gz' | wc -l)"
if [ "$cnt" -gt 0 ] ; then
rm -v "bin/targets/$target/faillogs/$p.log"
fi
Expand All @@ -258,6 +258,6 @@ EOF
|& tee "$destdir/build.log" >&2


find "$ibdir/bin/targets/$target" \( -name '*.bin' -or -name '*.img' -or -name 'profiles.json' -or -name 'faillogs' \) -exec cp -avx '{}' "$destdir/" \;
find "$ibdir/bin/targets/$target" \( -name '*.bin' -or -name '*.img' -or -name '*.gz' -or -name 'profiles.json' -or -name 'faillogs' \) -exec cp -avx '{}' "$destdir/" \;

echo "Done."

0 comments on commit 903d0ba

Please sign in to comment.