mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-02-05 04:21:12 +00:00
update update-majors.sh to use linux flag to "find" for use in CI
This commit is contained in:
@@ -36,7 +36,7 @@ for m in $modules; do
|
|||||||
found_new_version=$?
|
found_new_version=$?
|
||||||
if [[ $found_new_version == 0 ]]; then
|
if [[ $found_new_version == 0 ]]; then
|
||||||
echo "Found new version $next_version. Replacing imports..."
|
echo "Found new version $next_version. Replacing imports..."
|
||||||
find . -name './.*' -prune -o \
|
find . -wholename './.*' -prune -o \
|
||||||
-path ./generated -prune -o \
|
-path ./generated -prune -o \
|
||||||
-type f -name '*.go' -print0 |
|
-type f -name '*.go' -print0 |
|
||||||
xargs -0 sed -i '' "s#${m}#${next_version}#g"
|
xargs -0 sed -i '' "s#${m}#${next_version}#g"
|
||||||
|
|||||||
Reference in New Issue
Block a user