diff mcabber/contrib/events/eventcmd.osd @ 2169:4889f429fdd0

Get read of bashism in contrib/events/eventcmd.pastebin thanks to Raphael Geissert, see Debian BTS issue ##772307.
author Mikael Berthe <mikael@lilotux.net>
date Sun, 15 Feb 2015 12:12:22 +0100
parents fcef5d34b7d4
children
line wrap: on
line diff
--- a/mcabber/contrib/events/eventcmd.osd	Thu Dec 11 20:19:37 2014 +0100
+++ b/mcabber/contrib/events/eventcmd.osd	Sun Feb 15 12:12:22 2015 +0100
@@ -17,7 +17,7 @@
 # Note that the 4th argument is only provided for incoming messages
 # and when 'event_log_files' is set.
 
-if [ $event = "MSG" ]; then
+if [ "$event" = "MSG" ]; then
   case "$arg1" in
     IN)
       # Incoming message from buddy $arg2
@@ -38,7 +38,7 @@
       # Outgoing message for buddy $arg2
       ;;
   esac
-elif [ $event = "STATUS" ]; then
+elif [ "$event" = "STATUS" ]; then
   # Buddy $arg2 status is $arg1 (_, O, I, F, D, N, A)
   echo "<$arg2> has changed status to: [$arg1]" | $XOSD_CMD_PIPE > /dev/null 2>&1
   echo > /dev/null