tools: use /usr/bin/env bash instead of /bin/bash

These commands fail on systems that do not have bash under /bin

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2018-07-23 15:06:04 -07:00 committed by Rusty Russell
parent 369bd274a1
commit f8fa4213f1
9 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
EXIT_CODE=0 EXIT_CODE=0

View File

@ -1,4 +1,4 @@
#! /bin/bash #!/usr/bin/env bash
# Needs bash for process substitition, ie <( # Needs bash for process substitition, ie <(
if [ $# != 2 ]; then if [ $# != 2 ]; then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if ! diff -u <(grep -E 'sudo apt-get install .*git' README.md) \ if ! diff -u <(grep -E 'sudo apt-get install .*git' README.md) \
<(grep -E 'sudo apt-get install .*git' doc/INSTALL.md); then <(grep -E 'sudo apt-get install .*git' doc/INSTALL.md); then

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
EXIT_CODE=0 EXIT_CODE=0
for FILE in $(git grep -lE 'int main\(' | grep -vE '^ccan/'); do for FILE in $(git grep -lE 'int main\(' | grep -vE '^ccan/'); do

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihgtning|ligthning|lighnting|lightinng|lightnnig|lightnign' -- . ':!tools/check-spelling.sh'; then if git --no-pager grep -nHiE 'l[ightn]{6}g|l[ightn]{8}g|ilghtning|lgihtning|lihgtning|ligthning|lighnting|lightinng|lightnnig|lightnign' -- . ':!tools/check-spelling.sh'; then
echo "Identified a likely misspelling of the word \"lightning\" (see above). Please fix." echo "Identified a likely misspelling of the word \"lightning\" (see above). Please fix."

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
: "${EXPOSE_TCP:=false}" : "${EXPOSE_TCP:=false}"

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
# With no args, read stdin to scrape compiler output. # With no args, read stdin to scrape compiler output.

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
from=${1} from=${1}
to=${2} to=${2}

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Script to rewrite the autogenerated mocks in a unit test between # Script to rewrite the autogenerated mocks in a unit test between
# /* AUTOGENERATED MOCKS START */ and /* AUTOGENERATED MOCKS END */ # /* AUTOGENERATED MOCKS START */ and /* AUTOGENERATED MOCKS END */
# based on link failures. # based on link failures.