CI: lint: show "src" in error message too (MR 19)

This commit is contained in:
Oliver Smith 2021-12-04 16:35:21 +01:00
parent 6f4285e957
commit a8cbf4f950
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -51,7 +51,7 @@ lint_spaces() {
lint_files() { lint_files() {
# shellcheck disable=SC3043 # shellcheck disable=SC3043
local files="$(find . -name '*.css' -o -name '*.js' -o -name '*.json')" local files="$(find src -name '*.css' -o -name '*.js' -o -name '*.json')"
if [ -z "$files" ]; then if [ -z "$files" ]; then
echo "ERROR: no files to lint found in current work dir" echo "ERROR: no files to lint found in current work dir"
@ -75,7 +75,7 @@ lint_files() {
done done
} }
cd "$TOPDIR/src" cd "$TOPDIR"
lint_files lint_files
if [ "$EXIT_CODE" -eq 0 ]; then if [ "$EXIT_CODE" -eq 0 ]; then