File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,9 @@ if ! command -v shellcheck > /dev/null; then
3535 exit $EXIT_CODE
3636fi
3737
38+ SHELLCHECK_CMD=(shellcheck --external-sources --check-sourced)
3839EXCLUDE=" --exclude=$( IFS=' ,' ; echo " ${disabled[*]} " ) "
39- if ! shellcheck " $EXCLUDE " $( git ls-files -- ' *.sh' | grep -vE ' src/(leveldb|secp256k1|univalue)/' ) ; then
40+ if ! " ${SHELLCHECK_CMD[@]} " " $EXCLUDE " $( git ls-files -- ' *.sh' | grep -vE ' src/(leveldb|secp256k1|univalue)/' ) ; then
4041 EXIT_CODE=1
4142fi
4243
@@ -46,14 +47,13 @@ if ! command -v yq > /dev/null; then
4647fi
4748
4849EXCLUDE_GITIAN=${EXCLUDE} " ,$( IFS=' ,' ; echo " ${disabled_gitian[*]} " ) "
49- SHELLCHECK_CMD=" shellcheck --external-sources --check-sourced $EXCLUDE_GITIAN "
5050for descriptor in $( git ls-files -- ' contrib/gitian-descriptors/*.yml' )
5151do
5252 script=$( basename " $descriptor " )
5353 # Use #!/bin/bash as gitian-builder/bin/gbuild does to complete a script.
5454 echo " #!/bin/bash" > $script
5555 yq -r .script " $descriptor " >> $script
56- if ! $ SHELLCHECK_CMD $script ; then
56+ if ! " ${ SHELLCHECK_CMD[@]} " " $EXCLUDE_GITIAN " $script ; then
5757 EXIT_CODE=1
5858 fi
5959 rm $script
You can’t perform that action at this time.
0 commit comments