scripts: avoid name collisions in update_ngtcp2.sh

This commit is contained in:
Jan Doskočil 2025-02-21 16:18:39 +01:00 committed by Daniel Salzman
parent 537994fecd
commit f7923bb2fe

View file

@ -37,7 +37,7 @@ done <"${clonedir}/deleted"
# update changed files
find . -type f | while IFS=$'\n' read -r line; do
base="$(basename "$line")"
match="$(grep -m1 "$base" "${clonedir}/changed" || true)"
match="$(grep -Em1 '(^|/)'"$base"'$' "${clonedir}/changed" || true)"
if [ -n "$match" ]; then
cp "$match" "$line"
fi