diff mcabber/contrib/events/eventcmd.pastebin @ 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 6df03b9b17ba
children
line wrap: on
line diff
--- a/mcabber/contrib/events/eventcmd.pastebin	Thu Dec 11 20:19:37 2014 +0100
+++ b/mcabber/contrib/events/eventcmd.pastebin	Sun Feb 15 12:12:22 2015 +0100
@@ -34,7 +34,7 @@
 
 jid=$3
 # do nothing if it's from self
-[ "$jid" == "$me" ] && exit 0
+[ "$jid" = "$me" ] && exit 0
 
 # If receiving a message, scan for links
 url=$(cat "$4" | awk 'BEGIN { RS="( |\n|\t)+"; FS="¬"; } /(https?|ftp):\/\// { print $1 }')