File tree Expand file tree Collapse file tree 7 files changed +9
-8
lines changed
Expand file tree Collapse file tree 7 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set -e -o pipefail
66# 1. Checks if we're at the top directory of the Bitcoin Core repository
77# 2. Defines a few common functions and variables
88#
9- # shellcheck source=libexec/prelude.bash
9+ # shellcheck source=contrib/guix/ libexec/prelude.bash
1010source " $( dirname " ${BASH_SOURCE[0]} " ) /libexec/prelude.bash"
1111
1212
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set -e -o pipefail
66# 1. Checks if we're at the top directory of the Bitcoin Core repository
77# 2. Defines a few common functions and variables
88#
9- # shellcheck source=libexec/prelude.bash
9+ # shellcheck source=contrib/guix/ libexec/prelude.bash
1010source " $( dirname " ${BASH_SOURCE[0]} " ) /libexec/prelude.bash"
1111
1212
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set -e -o pipefail
66# 1. Checks if we're at the top directory of the Bitcoin Core repository
77# 2. Defines a few common functions and variables
88#
9- # shellcheck source=libexec/prelude.bash
9+ # shellcheck source=contrib/guix/ libexec/prelude.bash
1010source " $( dirname " ${BASH_SOURCE[0]} " ) /libexec/prelude.bash"
1111
1212
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set -e -o pipefail
66# 1. Checks if we're at the top directory of the Bitcoin Core repository
77# 2. Defines a few common functions and variables
88#
9- # shellcheck source=libexec/prelude.bash
9+ # shellcheck source=contrib/guix/ libexec/prelude.bash
1010source " $( dirname " ${BASH_SOURCE[0]} " ) /libexec/prelude.bash"
1111
1212
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set -e -o pipefail
66# 1. Checks if we're at the top directory of the Bitcoin Core repository
77# 2. Defines a few common functions and variables
88#
9- # shellcheck source=libexec/prelude.bash
9+ # shellcheck source=contrib/guix/ libexec/prelude.bash
1010source " $( dirname " ${BASH_SOURCE[0]} " ) /libexec/prelude.bash"
1111
1212
Original file line number Diff line number Diff line change 22export LC_ALL=C
33set -e -o pipefail
44
5- # shellcheck source=../.. /shell/realpath.bash
5+ # shellcheck source=contrib /shell/realpath.bash
66source contrib/shell/realpath.bash
77
8- # shellcheck source=../.. /shell/git-utils.bash
8+ # shellcheck source=contrib /shell/git-utils.bash
99source contrib/shell/git-utils.bash
1010
1111# ###############
Original file line number Diff line number Diff line change 2525SHELLCHECK_CMD=(shellcheck --external-sources --check-sourced)
2626EXCLUDE=" --exclude=$( IFS=' ,' ; echo " ${disabled[*]} " ) "
2727SOURCED_FILES=$( git ls-files | xargs gawk ' /^# shellcheck shell=/ {print FILENAME} {nextfile}' ) # Check shellcheck directive used for sourced files
28- if ! " ${SHELLCHECK_CMD[@]} " " $EXCLUDE " $SOURCED_FILES $( git ls-files -- ' *.sh' | grep -vE ' src/(leveldb|secp256k1|minisketch|univalue)/' ) ; then
28+ mapfile -t GUIX_FILES < <( git ls-files contrib/guix contrib/shell | xargs gawk ' /^#!\/usr\/bin\/env bash/ {print FILENAME} {nextfile}' )
29+ if ! " ${SHELLCHECK_CMD[@]} " " $EXCLUDE " $SOURCED_FILES " ${GUIX_FILES[@]} " $( git ls-files -- ' *.sh' | grep -vE ' src/(leveldb|secp256k1|minisketch|univalue)/' ) ; then
2930 EXIT_CODE=1
3031fi
3132
You can’t perform that action at this time.
0 commit comments