From fb1ead51ef49a6702409ffcdddb9a0ace6b7296a Mon Sep 17 00:00:00 2001 From: Axel Date: Mon, 9 Sep 2024 23:55:49 +0200 Subject: [PATCH] conversion traitement de chaine en double crochet --- ntfy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntfy.sh b/ntfy.sh index cf034cd..d195fc0 100644 --- a/ntfy.sh +++ b/ntfy.sh @@ -29,11 +29,11 @@ topic=$1 subject=$2 body=$3 -if [ ! "$(grep "Problème" <<<"$subject")" = "" ] +if [[ $subject == *"Problème"* ]] then #Problème tag="facepalm" -elif [ ! "$(grep "Resolus" <<<"$subject")" = "" ] +elif [[ $subject == *"Résolus"* ]] then #Résolu tag="+1"