mirror of
https://codeberg.org/claui/mobile-config-firefox.git
synced 2024-11-09 19:30:15 +00:00
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() {
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue