Skip to content

Commit

Permalink
Try shell=False only
Browse files Browse the repository at this point in the history
  • Loading branch information
ttannis committed Jul 6, 2020
1 parent 8d95e0d commit 0c20b13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ def build_js() -> None:
logging.error('npm must be available')

try:
subprocess.check_output(['npm install'], cwd=PACKAGE_DIR, shell=True)
subprocess.check_output(['npm run build'], cwd=PACKAGE_DIR, shell=True)
subprocess.check_call(['npm install'], cwd=PACKAGE_DIR)
subprocess.check_call(['npm run build'], cwd=PACKAGE_DIR)
except Exception as e:
logging.warn('Installation of npm dependencies failed')
logging.warn(str(e))
Expand Down

0 comments on commit 0c20b13

Please sign in to comment.