mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
Scripts: safeguard against missing directory
This commit is contained in:
parent
e98e55ede5
commit
8e00d7b4dc
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue