update update-majors.sh to use linux flag to "find" for use in CI

This commit is contained in:
Ryan Richard
2026-01-21 11:33:14 -08:00
parent 6577c523de
commit 5d9b7a3346

View File

@@ -36,7 +36,7 @@ for m in $modules; do
found_new_version=$?
if [[ $found_new_version == 0 ]]; then
echo "Found new version $next_version. Replacing imports..."
find . -name './.*' -prune -o \
find . -wholename './.*' -prune -o \
-path ./generated -prune -o \
-type f -name '*.go' -print0 |
xargs -0 sed -i '' "s#${m}#${next_version}#g"