Commit e45b8dd5 authored by Bertrand Goareguer's avatar Bertrand Goareguer Committed by Cédric OLIVIER
Browse files

fix: Resolve "Wrong if statement"

parent e6c7b3c9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -442,7 +442,7 @@ variables:
      done
      log_info "$nb_new_vulns new vulnerabilities"

      if [[ $DEFECTDOJO_SMTP_SERVER && ${nb_new_vulns} -gt 0 ]]; then
      if [[ ! -z "$DEFECTDOJO_SMTP_SERVER" && ${nb_new_vulns} -gt 0 ]]; then
        log_info "set nb in mail template"
        sed -i 's/<<nb>>/'$nb_new_vulns'/' /tmp/mail.txt
        ssmtp "$GITLAB_USER_EMAIL" < /tmp/mail.txt