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 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 @@ -20,12 +20,13 @@ if ! command -v shellcheck > /dev/null; then
2020 exit $EXIT_CODE
2121fi
2222
23- SHELLCHECK_CMD=(shellcheck --external-sources --check-sourced)
23+ SHELLCHECK_CMD=(shellcheck --external-sources --check-sourced --source-path=SCRIPTDIR )
2424EXCLUDE=" --exclude=$( IFS=' ,' ; echo " ${disabled[*]} " ) "
2525# Check shellcheck directive used for sourced files
2626mapfile -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}' )
2728mapfile -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
2930 EXIT_CODE=1
3031fi
3132
You can’t perform that action at this time.
0 commit comments