global: use '/usr/bin/env bash' instead of '/usr/bin/bash' in shebangs

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.
This commit is contained in:
Ivan Grokhotkov
2020-04-03 01:10:02 +02:00
parent 8210802703
commit e94288da31
42 changed files with 49 additions and 49 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# Explicitly switches the relative submodules locations on GitHub to the original public URLs
#