From: Cheng Zhao Date: Tue, 29 Apr 2014 03:07:02 +0000 (+0800) Subject: Fix executing npm under cygwin. X-Git-Tag: v0.12.0~6 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=ec63cc09db9e741ab4322c30b7f6ac1e2cd0943c;p=electron.git Fix executing npm under cygwin. --- diff --git a/script/bootstrap.py b/script/bootstrap.py index ed7096a9..e0e51530 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -11,7 +11,7 @@ from lib.util import execute, scoped_cwd SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) VENDOR_DIR = os.path.join(SOURCE_ROOT, 'vendor') PYTHON_26_URL = 'https://chromium.googlesource.com/chromium/deps/python_26' -NPM = 'npm.cmd' if sys.platform == 'win32' else 'npm' +NPM = 'npm.cmd' if sys.platform in ['win32', 'cygwin'] else 'npm' def main():