CI: lint: show "src" in error message too (MR 19)
This commit is contained in:
parent
6f4285e957
commit
a8cbf4f950
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue