Permalink
Browse files

Fix growl example for latest version of node.

  • Loading branch information...
1 parent 4c20b6b commit 159c7dc84f53962077339b62f32d5193d5695ba1 @tristandunn committed Jul 10, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 examples/growl.js
View
@@ -1,4 +1,4 @@
-var system = require("sys");
+var exec = require("child_process").exec;
var Campfire = require("../lib/campfire").Campfire;
var instance = new Campfire({
@@ -29,9 +29,9 @@ instance.join(ROOM_ID, function(error, room) {
var
command = "/usr/local/bin/growlnotify";
command += " -t '" + message.user.name + "'";
- command += " -m '" + message.body.replace("'", "'") + "'";
+ command += " -m '" + message.body.replace("'", '"') + "'";
command += " --image 'examples/images/icon.png'";
- system.exec(command);
+ exec(command, { timeout: 5 });
});
});

0 comments on commit 159c7dc

Please sign in to comment.