Fix syntax for conditional

This commit is contained in:
weslambert
2023-07-11 13:37:50 -04:00
committed by GitHub
parent fe7fb7f54d
commit 5f1b467e64

View File

@@ -23,7 +23,7 @@ rm -f $OUTPUTDIR/*
for i in $(find $SORULEDIR -name "*.yar" -o -name "*.yara"); do
rule_name=$(echo $i | awk -F '/' '{print $NF}')
if [[ ! "${excluded_rules}" =~ ${rule_name} ]]; then
if [[ ! "${excluded_rules[*]}" =~ ${rule_name} ]]; then
echo "Adding rule: $rule_name..."
cp $i $OUTPUTDIR/$rule_name
((newcounter++))