mirror of
https://gitlab.nic.cz/knot/knot-dns.git
synced 2026-05-28 04:02:31 -04:00
scripts: avoid name collisions in update_ngtcp2.sh
This commit is contained in:
parent
537994fecd
commit
f7923bb2fe
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue