Skip to content

Commit

Permalink
fix Invalid number error
Browse files Browse the repository at this point in the history
Using octals without `o` is now deprecated and results in compile
errors when using the latest Babel.

PR-URL: #24
Credit: @rufman
Close: #24
Reviewed-by: @isaacs
  • Loading branch information
rufman authored and isaacs committed Aug 12, 2019
1 parent 9c93ac3 commit c3f32e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ function writeShim_ (from, to, prog, args, variables, cb) {

function chmodShim (to, cb) {
var then = times(2, cb, cb)
fs.chmod(to, 0755, then)
fs.chmod(to + ".cmd", 0755, then)
fs.chmod(to, "0755", then)
fs.chmod(to + ".cmd", "0755", then)
}

function times(n, ok, cb) {
Expand Down

0 comments on commit c3f32e3

Please sign in to comment.