mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Tests: Prevent executable images or html files during lint
This commit is contained in:
parent
5249faeeb9
commit
352acd7771
Notes:
github-actions[bot]
2024-10-25 07:01:42 +00:00
Author: https://github.com/BenWiederhake Commit: https://github.com/LadybirdBrowser/ladybird/commit/352acd77710 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1950
1 changed files with 2 additions and 0 deletions
|
@ -8,8 +8,10 @@ cd "$script_path/.."
|
||||||
if [ "$(uname -s)" = "Darwin" ]; then
|
if [ "$(uname -s)" = "Darwin" ]; then
|
||||||
# MacOS's find does not support '-executable' OR '-perm /mode'.
|
# MacOS's find does not support '-executable' OR '-perm /mode'.
|
||||||
BAD_FILES=$(find Base/res/ -type f -perm +111)
|
BAD_FILES=$(find Base/res/ -type f -perm +111)
|
||||||
|
BAD_FILES+=$(find Tests/ -name WPT -prune -or -perm +111 \! -type d -print | grep -Ev '\.(sh|py)$' || true)
|
||||||
else
|
else
|
||||||
BAD_FILES=$(find Base/res/ -type f -executable)
|
BAD_FILES=$(find Base/res/ -type f -executable)
|
||||||
|
BAD_FILES+=$(find Tests/ -name WPT -prune -or -executable \! -type d -print | grep -Ev '\.(sh|py)$' || true)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${BAD_FILES}" ]
|
if [ -n "${BAD_FILES}" ]
|
||||||
|
|
Loading…
Reference in a new issue