mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 06:34:16 +00:00
fix check strict bash
This commit is contained in:
2
scripts/check-syntax.sh
vendored
2
scripts/check-syntax.sh
vendored
@@ -50,7 +50,7 @@ echo "---------------------------------"
|
|||||||
echo "checking for bash strict mode"
|
echo "checking for bash strict mode"
|
||||||
find tests-ng -iname '*.sh' | while read -r script; do
|
find tests-ng -iname '*.sh' | while read -r script; do
|
||||||
#grep 'set +e' "${script}" 2>&1 >/dev/null && echo "set +e found in ${script}" && exit 1
|
#grep 'set +e' "${script}" 2>&1 >/dev/null && echo "set +e found in ${script}" && exit 1
|
||||||
grep 'set \-euo errtrace pipefail' "${script}" || (echo "set -euo errtrace pipefail not set in ${script}" && exit 1 )
|
grep 'set -euo errtrace pipefail' "${script}" >/dev/null 2>&1 || (echo "set -euo errtrace pipefail not set in ${script}" && exit 1 )
|
||||||
done
|
done
|
||||||
|
|
||||||
# PEP8 tests
|
# PEP8 tests
|
||||||
|
|||||||
Reference in New Issue
Block a user