Skip to content

Commit

Permalink
bin/prey: Use 'nodejs' command if present on system (Ubuntu).
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas committed Oct 20, 2014
1 parent 4fad5d2 commit 255b509
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/prey
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/bash

PATH="$PATH:/usr/local/bin"
node="node"
dir="$(dirname $0)"
[ -x "$dir/node" ] && node="$dir/node"
[ -x "$dir/node" ] && node="$dir/node" || node="$(command -v node || command -v nodejs)"

# if current file is a symlink (e.g. installed via npm) we'll append
# the relative path to where the package is actually installed.
Expand Down

0 comments on commit 255b509

Please sign in to comment.