mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
Scripts: do one wildcard expansion on final ACL lookup
This commit is contained in:
parent
447b471b37
commit
effe597d33
@ -74,10 +74,14 @@ for WIDGET in ${WIDGETS}; do
|
||||
fi
|
||||
|
||||
for ENDPOINT in ${ENDPOINTS}; do
|
||||
if ! grep -q "<pattern>${ENDPOINT#"/"}</pattern>" ${ACLS}; then
|
||||
echo "Unknown ACL for ${WIDGET}:"
|
||||
echo ${ENDPOINT}
|
||||
exit 1
|
||||
PATTERN=${ENDPOINT#/}
|
||||
if ! grep -q "<pattern>${PATTERN}</pattern>" ${ACLS}; then
|
||||
PATTERN=${PATTERN%/*}
|
||||
if ! grep -q "<pattern>${PATTERN}/\*</pattern>" ${ACLS}; then
|
||||
echo "Unknown ACL for ${WIDGET}:"
|
||||
echo ${ENDPOINT}
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user