chore: avoid printing for unchanged files

This commit is contained in:
Ilya Zlobintsev
2026-07-03 18:02:18 +03:00
parent a0944bb706
commit 63ea38572f
+5 -3
View File
@@ -13,7 +13,9 @@ find "kernel-open" "src" -type f | while IFS= read -r relpath; do
fi
mkdir -p "$(dirname "$dst")"
cp "$src" "$dst"
echo "Updated $relpath"
done
if ! cmp -s "$src" "$dst"; then
cp "$src" "$dst"
echo "Updated $relpath"
fi
done