diff --git a/build/build.sh b/build/build.sh index 280ab02..f266012 100755 --- a/build/build.sh +++ b/build/build.sh @@ -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' -or -name '*.gz' | wc -l)" + cnt="$(find "bin/targets/$target" -name '*.bin' -or -name '*.img' -or -name '*.gz' -or -name '*.zst' -or -name '*.xz' | wc -l)" if [ "$cnt" -gt 0 ] ; then rm -v "bin/targets/$target/faillogs/$p.log" fi @@ -258,6 +258,7 @@ EOF |& tee "$destdir/build.log" >&2 -find "$ibdir/bin/targets/$target" \( -name '*.bin' -or -name '*.img' -or -name '*.gz' -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 '*.zst' -or -name '*.xz' -or -name 'profiles.json' \) -exec mv -v '{}' "$destdir/" \; +mv "$ibdir/bin/targets/$target/faillogs" "$destdir/" echo "Done."