From 075b66194ad47c4735916ddbb0739e9910791e0f Mon Sep 17 00:00:00 2001 From: Max Jakob Date: Tue, 12 Sep 2023 19:33:00 +0200 Subject: [PATCH] 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. --- all/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/all/entrypoint.sh b/all/entrypoint.sh index 02adf877..a3fc3f22 100755 --- a/all/entrypoint.sh +++ b/all/entrypoint.sh @@ -492,7 +492,7 @@ protoc $PROTO_INCLUDE \ if [[ $GEN_LANG == "python" ]]; then # Create __init__.py for everything in the OUT_DIR # (i.e. gen/pb_python/foo/bar/). - find $OUT_DIR -type d | xargs -n1 -I '{}' touch '{}/__init__.py' + find $OUT_DIR -type d | xargs -I '{}' touch '{}/__init__.py' # And everything above it (i.e. gen/__init__py") d=`dirname $OUT_DIR` while [[ "$d" != "." && "$d" != "/" ]]; do