Fixed syntax issue in version checker shell script

This commit is contained in:
v-rucdu 2022-11-02 18:08:37 +05:30
Родитель 0863f5d7ae
Коммит 936d5374db
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -7,7 +7,7 @@ for (( i=0; i<${#MAPFILE[@]}; i++ ))
#And making sure that in every file that its filename contains the word "Detection", the version was updated
do
echo processing the file ${MAPFILE[$i]}.
if [[ "${MAPFILE[$i]}" == *"Detections/"* || "${MAPFILE[$i]}" == *"Analytic Rules/"* ] && ["${file: -5}" == *".yaml"* || && "${file: -5}" == *".yml"*];
if [[ "${MAPFILE[$i]}" == *"Detections/"* || "${MAPFILE[$i]}" == *"Analytic Rules/"* ]] && [[ "${file: -5}" == *".yaml"* || "${file: -4}" == *".yml"* ]];
then
echo ${MAPFILE[$i]} is a detection
diffs=$(echo $(git diff origin/master -U0 --ignore-space-change "${MAPFILE[$i]}"))