Browse Source

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>
ppa-0.6.1
William Casarin 6 years ago
committed by Rusty Russell
parent
commit
f8fa4213f1
  1. 2
      tools/check-includes.sh
  2. 2
      tools/check-manpage.sh
  3. 2
      tools/check-markdown.sh
  4. 2
      tools/check-setup_locale.sh
  5. 2
      tools/check-spelling.sh
  6. 2
      tools/docker-entrypoint.sh
  7. 2
      tools/mockup.sh
  8. 2
      tools/rel.sh
  9. 2
      tools/update-mocks.sh

2
tools/check-includes.sh

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

2
tools/check-manpage.sh

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

2
tools/check-markdown.sh

@ -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

2
tools/check-setup_locale.sh

@ -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

2
tools/check-spelling.sh

@ -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."

2
tools/docker-entrypoint.sh

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

2
tools/mockup.sh

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

2
tools/rel.sh

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

2
tools/update-mocks.sh

@ -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.

Loading…
Cancel
Save