Valider 591bfa64 rédigé par cam.lafit's avatar cam.lafit
Parcourir les fichiers

Display spip to check only if an alert is raised

* When any spip looks hacked display a nice green text
parent 16fa7032
Chargement en cours
Chargement en cours
Chargement en cours
Chargement en cours
+8 −4
Numéro de ligne d'origine Numéro de ligne de diff Ligne de diff
@@ -358,7 +358,11 @@ for spip in "${global_spip_path_founds[@]}"; do
  check_crontab "${spip}"
done;

if [[ -n ${global_spip_hacked} ]]; then
  vprint "SPIP to check manualy" "RED"
  for spip in "${global_spip_hacked[@]}"; do
    vprint "${spip}" "WHITE"
  done;
else
  vprint "No SPIP alert detected" "GREEN"
fi
 No newline at end of file