Using the method from @cemeyer (https://github.com/espressif/esp-idf/pull/3166): find . -name \*.sh -exec sed -i "" -e 's|^#!.*bin/bash|#!/usr/bin/env bash|' {} + Closes https://github.com/espressif/esp-idf/pull/3166.
9 lines
211 B
Bash
9 lines
211 B
Bash
#!/usr/bin/env bash
|
|
# Runs astyle with parameters which should be checked in a pre-commit hook
|
|
astyle \
|
|
--style=otbs \
|
|
--indent=spaces=4 \
|
|
--convert-tabs \
|
|
--keep-one-line-statements \
|
|
--pad-header \
|
|
"$@"
|