mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-17 19:03:42 +01:00
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:
parent
369bd274a1
commit
f8fa4213f1
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
EXIT_CODE=0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#! /bin/bash
|
||||
#!/usr/bin/env bash
|
||||
# Needs bash for process substitition, ie <(
|
||||
|
||||
if [ $# != 2 ]; then
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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."
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
: "${EXPOSE_TCP:=false}"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
# With no args, read stdin to scrape compiler output.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/usr/bin/env bash
|
||||
|
||||
from=${1}
|
||||
to=${2}
|
||||
|
@ -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…
Reference in New Issue
Block a user