Skip to content

Commit 075b661

Browse files
authored
Remove xargs warning for Python generation (#381)
There is a warning when running with `-l python`: ``` $ docker run -v $PWD:/defs namely/protoc-all:1.51_2 -l python -d /defs xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value ``` Hence we can remove the `--max-args` a.k.a. `-n` option.
1 parent 0e42d27 commit 075b661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

all/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ protoc $PROTO_INCLUDE \
492492
if [[ $GEN_LANG == "python" ]]; then
493493
# Create __init__.py for everything in the OUT_DIR
494494
# (i.e. gen/pb_python/foo/bar/).
495-
find $OUT_DIR -type d | xargs -n1 -I '{}' touch '{}/__init__.py'
495+
find $OUT_DIR -type d | xargs -I '{}' touch '{}/__init__.py'
496496
# And everything above it (i.e. gen/__init__py")
497497
d=`dirname $OUT_DIR`
498498
while [[ "$d" != "." && "$d" != "/" ]]; do

0 commit comments

Comments
 (0)