Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
install: prevent a KeyError from being thrown when PORTABLE is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Aug 6, 2012
1 parent caf69aa commit 093be8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/install.py
Expand Up @@ -154,7 +154,7 @@ def npm_files(action):
action([link_path], 'bin/npm')
elif action == install:
try_symlink('../lib/node_modules/npm/bin/npm-cli.js', link_path)
if os.environ['PORTABLE']:
if os.environ.get('PORTABLE'):
# This crazy hack is necessary to make the shebang execute the copy
# of node relative to the same directory as the npm script. The precompiled
# binary tarballs use a prefix of "/" which gets translated to "/bin/node"
Expand Down

0 comments on commit 093be8b

Please sign in to comment.