Fix contrib sample event script
authorMikael Berthe <mikael@lilotux.net>
Sat, 03 Apr 2010 20:10:22 +0200
changeset 1862 cca19ce862ef
parent 1861 81822de0edf6
child 1863 2b013c0f949a
Fix contrib sample event script
mcabber/contrib/events/eventcmd
--- a/mcabber/contrib/events/eventcmd	Sat Apr 03 19:12:20 2010 +0200
+++ b/mcabber/contrib/events/eventcmd	Sat Apr 03 20:10:22 2010 +0200
@@ -31,7 +31,7 @@
       ;;
     MUC)
       # Groupchat message in room $arg2
-      if [ -n "$filename" && -f "$filename" ]; then
+      if [ -n "$filename" -a -f "$filename" ]; then
         # We could process filename here...
         /bin/rm $filename
       fi