mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
Tests: Prevent executable images or html files during lint
This commit is contained in:
committed by
Jelle Raaijmakers
parent
5249faeeb9
commit
352acd7771
@@ -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}" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user