Skip to content

Commit

Permalink
sh compatibility added
Browse files Browse the repository at this point in the history
  • Loading branch information
meeDamian committed May 25, 2016
1 parent b0998a2 commit ac634d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
':' //; NODE="$(command -v nodejs || command -v node)"; if [[ `$NODE --version` =~ ^v5\. ]]; then FLAGS="--harmony_destructuring --harmony_default_parameters --harmony_rest_parameters"; fi; exec "$NODE" $FLAGS "$0" "$@"
':' //; FLAGS=''; NODE="$(command -v nodejs || command -v node)"; if $(printf $($NODE --version) | grep -Eq '^v5\.'); then FLAGS="--harmony_destructuring --harmony_default_parameters --harmony_rest_parameters"; fi; exec "$NODE" $FLAGS "$0" "$@"
'use strict';

require('./cli.js').main();

0 comments on commit ac634d3

Please sign in to comment.