summaryrefslogtreecommitdiff
path: root/scripts/codegen
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-10-29 10:54:31 +0200
committerrl1987 <rl1987@sdf.lonestar.org>2018-10-29 10:54:31 +0200
commita0dd6bfdb03f53a52778e65161b9f3c68234bb82 (patch)
treec67355dfcb3743d048e14456ba3525709e614484 /scripts/codegen
parent635312fc2a8fe96aa282ed242279629f814b9333 (diff)
downloadtor-a0dd6bfdb03f53a52778e65161b9f3c68234bb82.tar.gz
tor-a0dd6bfdb03f53a52778e65161b9f3c68234bb82.zip
run_trunnel.sh: Use 'find -exec' instead of a 'for' loop
This fixes shellcheck warnings SC2044 and SC2006.
Diffstat (limited to 'scripts/codegen')
-rwxr-xr-xscripts/codegen/run_trunnel.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/codegen/run_trunnel.sh b/scripts/codegen/run_trunnel.sh
index 9df402cf59..645b3c2158 100755
--- a/scripts/codegen/run_trunnel.sh
+++ b/scripts/codegen/run_trunnel.sh
@@ -9,9 +9,7 @@ OPTIONS="--require-version=1.5.1"
# Get all .trunnel files recursively from that directory so we can support
# multiple sub-directories.
-for file in `find ./src/trunnel/ -name '*.trunnel'`; do
- python -m trunnel ${OPTIONS} "$file"
-done
+find ./src/trunnel/ -name '*.trunnel' -exec python -m trunnel ${OPTIONS} {} \;
python -m trunnel ${OPTIONS} --write-c-files --target-dir=./src/ext/trunnel/