Skip to content

Commit 0b36662

Browse files
BRBussyclaude
andcommitted
Fix xargs commands in code generation script
Add -r flag to xargs commands to prevent "missing operand" errors when no files are found to delete. This was causing GitHub Actions deployment failures in the cleanup phase. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 9bba707 commit 0b36662

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/code-generation/generate-all.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trap 'handle_error $LINENO' ERR
1515
echo "🧹 Cleaning Go generated files..."
1616
find ./go \
1717
\( -name '*.pb.go' -o -name '*.pb.gw.go' -o -name '*.meshgo.go' -o -name '*.validate.go' \) \
18-
-print0 | xargs -0 -P 4 -n 1 rm
18+
-print0 | xargs -0 -r -P 4 -n 1 rm
1919
echo
2020

2121
echo "🧹 Cleaning Python generated files..."
@@ -26,7 +26,7 @@ echo "🧹 Cleaning Js + Ts generated files..."
2626
rm -rf ./ts/dist
2727
find ./ts/src \
2828
\( -name '*pb.d.ts' -o -name '*pb.js' -o -name '*Pb.ts' -o -name '*_meshts.js' -o -name '*_meshts.d.ts' \) \
29-
-print0 | xargs -0 -P 4 -n 1 rm
29+
-print0 | xargs -0 -r -P 4 -n 1 rm
3030
echo
3131

3232
echo "🧹 Cleaning Documentation generated files..."

0 commit comments

Comments
 (0)