on master help sign in
fix --ignore-scripts behavior on Mac and Linux
3415bdcEvan Czaplicki
installers/npm/bin/elm+10−3
@@ -32,9 +32,16 @@ var binaryPath = path.resolve(__dirname, 'elm') + (process.platform === 'win32'
32// Run the command directly if possible, otherwise download and then run.
32// Run the command directly if possible, otherwise download and then run.
33// This check is important for Windows where this file will be run all the time.
33// This check is important for Windows where this file will be run all the time.
34//
34//
35+if (process.platform === 'win32')
36+{
35−fs.existsSync(binaryPath)
37+ fs.existsSync(binaryPath)
36− ? runCommand()
38+ ? runCommand()
37− : require('../download.js')(runCommand);
39+ : require('../download.js')(runCommand);
40+}
41+else
42+{
43+ require('../download.js')(runCommand);
44+}
38
45
39
46
40function runCommand()
47function runCommand()