From a8cbf4f950bd501501cf1643b401e6b3be2a0a97 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Sat, 4 Dec 2021 16:35:21 +0100 Subject: [PATCH] CI: lint: show "src" in error message too (MR 19) --- .ci/lint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/lint.sh b/.ci/lint.sh index 4dfd432..b6b22c0 100755 --- a/.ci/lint.sh +++ b/.ci/lint.sh @@ -51,7 +51,7 @@ lint_spaces() { lint_files() { # 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 echo "ERROR: no files to lint found in current work dir" @@ -75,7 +75,7 @@ lint_files() { done } -cd "$TOPDIR/src" +cd "$TOPDIR" lint_files if [ "$EXIT_CODE" -eq 0 ]; then