mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
run_trunnel.sh: Use 'find -exec' instead of a 'for' loop
This fixes shellcheck warnings SC2044 and SC2006.
This commit is contained in:
@@ -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/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user