nathanboktae / mocha-casperjs

Write CasperJS tests using Mocha
MIT License
120 stars 29 forks source link

Fix if syntax in the bin/mocha-casperjs script #38

Closed sessio closed 10 years ago

sessio commented 10 years ago

In Ubuntu, /bin/sh has changed from bash to dash, and the mocha-casperjs script produces a few of these errors: mocha-casperjs: 3: [: ==: unexpected operator due to this syntax difference

Using a single = works in both bash and dash correctly.

sessio commented 10 years ago

I think this affected issue #35 as well

nathanboktae commented 10 years ago

Much appreciated as I'm very rough with shell scripting.

sessio commented 10 years ago

No problem, happy to help & thank you for providing this tool!