mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:04:59 +00:00
Meta: Ensure that icons and other resources remain non-executable
This commit is contained in:
parent
3a04e75774
commit
8aa6b13caa
2 changed files with 16 additions and 0 deletions
15
Meta/lint-executable-resources.sh
Executable file
15
Meta/lint-executable-resources.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
set -e pipefail
|
||||
|
||||
script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
|
||||
cd "$script_path/.."
|
||||
|
||||
BAD_FILES=$(find Base/etc/ Base/res/ Base/www/ -type f -executable)
|
||||
|
||||
if [ -n "${BAD_FILES}" ]
|
||||
then
|
||||
echo "These files are marked as executable, but are in directories that do not commonly"
|
||||
echo "contain executables. Please double-check the permissions of these files:"
|
||||
echo "${BAD_FILES}" | xargs ls -ld
|
||||
exit 1
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue