Skip to content

Commit

Permalink
tools: use /usr/bin/env bash instead of /bin/bash
Browse files Browse the repository at this point in the history
These commands fail on systems that do not have bash under /bin

Signed-off-by: William Casarin <[email protected]>
  • Loading branch information
jb55 authored and rustyrussell committed Jul 24, 2018
1 parent 369bd27 commit f8fa421
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tools/check-includes.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

EXIT_CODE=0

Expand Down
2 changes: 1 addition & 1 deletion tools/check-manpage.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#! /bin/bash
#!/usr/bin/env bash
# Needs bash for process substitition, ie <(

if [ $# != 2 ]; then
Expand Down
2 changes: 1 addition & 1 deletion tools/check-markdown.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if ! diff -u <(grep -E 'sudo apt-get install .*git' README.md) \
<(grep -E 'sudo apt-get install .*git' doc/INSTALL.md); then
Expand Down
2 changes: 1 addition & 1 deletion tools/check-setup_locale.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

EXIT_CODE=0
for FILE in $(git grep -lE 'int main\(' | grep -vE '^ccan/'); do
Expand Down
2 changes: 1 addition & 1 deletion tools/check-spelling.sh
Original file line number Diff line number Diff line change
@@ -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
echo "Identified a likely misspelling of the word \"lightning\" (see above). Please fix."
Expand Down
2 changes: 1 addition & 1 deletion tools/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

: "${EXPOSE_TCP:=false}"

Expand Down
2 changes: 1 addition & 1 deletion tools/mockup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

if [ $# -eq 0 ]; then
# With no args, read stdin to scrape compiler output.
Expand Down
2 changes: 1 addition & 1 deletion tools/rel.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

from=${1}
to=${2}
Expand Down
2 changes: 1 addition & 1 deletion tools/update-mocks.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Script to rewrite the autogenerated mocks in a unit test between
# /* AUTOGENERATED MOCKS START */ and /* AUTOGENERATED MOCKS END */
# based on link failures.
Expand Down

0 comments on commit f8fa421

Please sign in to comment.