mirror of
https://github.com/opnsense/core.git
synced 2026-02-03 20:39:42 -05:00
Scripts: do not error on missing directories
This commit is contained in:
parent
89f84780ff
commit
3cbc7927db
1 changed files with 6 additions and 3 deletions
|
|
@ -28,9 +28,12 @@
|
|||
ACLDIR=src/opnsense/mvc/app/models
|
||||
WIDGETDIR=src/opnsense/www/js/widgets
|
||||
|
||||
ACLS=$(find -s ${ACLDIR} -name "ACL.xml"; if [ -d "${1}" ]; then find -s ${1}/${ACLDIR} -name "ACL.xml"; fi)
|
||||
METADATA=$(find -s ${WIDGETDIR}/Metadata -name "*.xml")
|
||||
WIDGETS=$(find -s ${WIDGETDIR} -name "*.js")
|
||||
ACLS=$(
|
||||
if [ -d ${ACLDIR} ]; then find -s ${ACLDIR} -name "ACL.xml"; fi
|
||||
if [ -d "${1}" ]; then find -s ${1}/${ACLDIR} -name "ACL.xml"; fi
|
||||
)
|
||||
METADATA=$(if [ -d ${WIDGETDIR}/Metadata ]; then find -s ${WIDGETDIR}/Metadata -name "*.xml"; fi)
|
||||
WIDGETS=$(if [ -d ${WIDGETDIR} ]; then find -s ${WIDGETDIR} -name "*.js"; fi)
|
||||
|
||||
for WIDGET in ${WIDGETS}; do
|
||||
FILENAME=$(basename ${WIDGET})
|
||||
|
|
|
|||
Loading…
Reference in a new issue