File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
export LC_ALL=C
3
3
set -e -o pipefail
4
4
5
- # shellcheck source=../.. /shell/realpath.bash
5
+ # shellcheck source=contrib /shell/realpath.bash
6
6
source contrib/shell/realpath.bash
7
7
8
- # shellcheck source=../.. /shell/git-utils.bash
8
+ # shellcheck source=contrib /shell/git-utils.bash
9
9
source contrib/shell/git-utils.bash
10
10
11
11
# ###############
Original file line number Diff line number Diff line change @@ -20,12 +20,13 @@ if ! command -v shellcheck > /dev/null; then
20
20
exit $EXIT_CODE
21
21
fi
22
22
23
- SHELLCHECK_CMD=(shellcheck --external-sources --check-sourced)
23
+ SHELLCHECK_CMD=(shellcheck --external-sources --check-sourced --source-path=SCRIPTDIR )
24
24
EXCLUDE=" --exclude=$( IFS=' ,' ; echo " ${disabled[*]} " ) "
25
25
# Check shellcheck directive used for sourced files
26
26
mapfile -t SOURCED_FILES < <( git ls-files | xargs gawk ' /^# shellcheck shell=/ {print FILENAME} {nextfile}' )
27
+ mapfile -t GUIX_FILES < <( git ls-files contrib/guix contrib/shell | xargs gawk ' /^#!\/usr\/bin\/env bash/ {print FILENAME} {nextfile}' )
27
28
mapfile -t FILES < <( git ls-files -- ' *.sh' | grep -vE ' src/(leveldb|secp256k1|minisketch|univalue)/' )
28
- if ! " ${SHELLCHECK_CMD[@]} " " $EXCLUDE " " ${SOURCED_FILES[@]} " " ${FILES[@]} " ; then
29
+ if ! " ${SHELLCHECK_CMD[@]} " " $EXCLUDE " " ${SOURCED_FILES[@]} " " ${GUIX_FILES[@]} " " ${ FILES[@]}" ; then
29
30
EXIT_CODE=1
30
31
fi
31
32
You can’t perform that action at this time.
0 commit comments