Simply search for shell scripts to search
Use 2 simpler find commands and redirect the output to a temporary file.
This commit is contained in:
parent
4467f51e42
commit
86c37538d7
@ -15,11 +15,11 @@ elif [[ $TESTENV == eslint ]]; then
|
|||||||
cd qutebrowser/javascript || exit 1
|
cd qutebrowser/javascript || exit 1
|
||||||
eslint --color --report-unused-disable-directives .
|
eslint --color --report-unused-disable-directives .
|
||||||
elif [[ $TESTENV == shellcheck ]]; then
|
elif [[ $TESTENV == shellcheck ]]; then
|
||||||
dev_scripts=$( find scripts/dev/ -name '*.sh' -print0 | xargs -0 )
|
SCRIPTS=$( mktemp )
|
||||||
# false positive: we are using 'find -exec +'
|
find scripts/dev/ -name '*.sh' >"$SCRIPTS"
|
||||||
# shellcheck disable=SC2038
|
find misc/userscripts/ -type f -exec grep -lE '[/ ][bd]ash$|[/ ]sh$|[/ ]ksh$' {} + >>"$SCRIPTS"
|
||||||
userscripts=$( find misc/userscripts/ -type f -exec grep -lE '[/ ][bd]ash$|[/ ]sh$|[/ ]ksh$' {} + | xargs )
|
mapfile -t scripts <"$SCRIPTS"
|
||||||
IFS=" " read -r -a scripts <<< "$dev_scripts $userscripts"
|
rm -f "$SCRIPTS"
|
||||||
docker run \
|
docker run \
|
||||||
-v "$PWD:/outside" \
|
-v "$PWD:/outside" \
|
||||||
-w /outside \
|
-w /outside \
|
||||||
|
Loading…
Reference in New Issue
Block a user