Permalink
Browse files

windows compatible command

win compatible simple echo command without base64 as it doesn't exists on windows by default
  • Loading branch information...
1 parent 8ffc365 commit 6d912fc8785d2e06d2d7347e2c07ac97ffb5bd40 @speier speier committed Nov 6, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 examples/simple.js
View
@@ -1,5 +1,6 @@
-var spawnCommand = require('../');
- child = spawnCommand('echo "Hello spawn" | base64');
+var spawnCommand = require('../'),
+ command = (process.platform === 'win32') ? 'echo Hello spawn' : 'echo "Hello spawn" | base64',
+ child = spawnCommand(command);
child.stdout.on('data', function (data) {
console.log('data', data.toString());

0 comments on commit 6d912fc

Please sign in to comment.