mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-01-11 11:48:40 +00:00
Fix bug where empty attributes are not checked
This commit is contained in:
parent
a0c0b838db
commit
2af2b7f548
|
|
@ -29,7 +29,7 @@ fi
|
|||
|
||||
# Html checks
|
||||
if [[ "$FILE" =~ ^.+(tpl\.php|html)$ ]]; then
|
||||
if [[ -n $(grep -E '=\"[\#\$\%\^\&\*\(\)\\/\ ]+\"' $FILE) ]]; then
|
||||
if [[ -n $(grep -E '=\"[\#\$\%\^\&\*\(\)\\/\ ]*\"' $FILE) ]]; then
|
||||
echo -e "\e[1;31m\tFound invalid attribute.\e[0m" >&2
|
||||
grep -E '=\"[\#\$\%\^\&\*\(\)\\/\ ]*\"' $FILE >&2
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user