Scripts: safeguard against missing directory

This commit is contained in:
Franco Fichtner 2026-02-09 07:24:30 +01:00
parent e98e55ede5
commit 8e00d7b4dc

View file

@ -27,6 +27,10 @@
RET=0
if [ ! -d src ]; then
exit ${RET}
fi
for FILE in $(find src -name "*.php"); do
CLASS=$(grep ^class ${FILE} | awk '{ print $2 }')
if [ -z "${CLASS}" ]; then