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"