]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
scripts: avoid name collisions in update_ngtcp2.sh
authorJan Doskočil <jan.doskocil@nic.cz>
Fri, 21 Feb 2025 15:18:39 +0000 (16:18 +0100)
committerDaniel Salzman <daniel.salzman@nic.cz>
Fri, 21 Feb 2025 19:29:04 +0000 (20:29 +0100)
scripts/update_ngtcp2.sh

index ee2324cd804cc87b087aea95d93c183b3c1b249c..3217a9fc933c4d722331b623f96b8380a9b634ac 100755 (executable)
@@ -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