mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
Scripts: do not error on missing directories
This commit is contained in:
parent
89f84780ff
commit
3cbc7927db
@ -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…
x
Reference in New Issue
Block a user