From 0eb1bbfa1b4138aafc392aa4c27b46ed94c87be8 Mon Sep 17 00:00:00 2001 From: Ark74 Date: Wed, 3 Jun 2020 06:13:06 -0500 Subject: [PATCH] Fix confitional grep option (cherry picked from commit a095035271ad1f655561ca8561cad7e9245154a7) --- jigasi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jigasi.sh b/jigasi.sh index 7033a1b..33daf4d 100644 --- a/jigasi.sh +++ b/jigasi.sh @@ -209,7 +209,7 @@ sed -i "/xmpp.acc.ANONYMOUS_AUTH/ s|# ||" $JIG_SIP_PROP prosodyctl register transcript auth.$DOMAIN jigasi #Temp fix Jigasi Transcript -if [ grep -x "sleep" /etc/init.d/jicofo ]; then +if grep -q "sleep" /etc/init.d/jicofo; then echo "Jicofo delay already present." else echo "Adding Jicofo delay..."