diff --git a/.github/scripts/find_replace.sh b/.github/scripts/find_replace.sh index ee94ea12084..57074a925f6 100755 --- a/.github/scripts/find_replace.sh +++ b/.github/scripts/find_replace.sh @@ -3,4 +3,4 @@ old_text=$1 new_text=$2 echo "Old text: ${old_text}" echo "New text: ${new_text}" -grep -rl "${old_text}" . | xargs gsed -i -e '1h;2,$H;$!d;g' -e "s/${old_text}/${new_text}/g" +grep -rlZ -- "${old_text}" . | xargs -0 gsed -i -e '1h;2,$H;$!d;g' -e "s/${old_text}/${new_text}/g"