Skip to content

Commit

Permalink
Merge pull request #9 from jpbochi/blunder
Browse files Browse the repository at this point in the history
fixes blunder
  • Loading branch information
jpbochi authored Feb 3, 2017
2 parents 320069e + 324de32 commit 09e34ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drun
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ node_version_jq() {
jq -r -e '.engines.node // "latest"' package.json
}
node_version_python() {
python -c "import json;print json.load(open('package.json')).get('engines',{}).get('node','latestpython')"
python -c "import json;print json.load(open('package.json')).get('engines',{}).get('node','latest')"
}
node_version_ruby() {
cat package.json | ruby -e 'require "json"; puts JSON[STDIN.read].fetch("engine",{}).fetch("node","lastestruby")'
cat package.json | ruby -e 'require "json"; puts JSON[STDIN.read].fetch("engine",{}).fetch("node","latest")'
}
node_version() {
if [ ! -f package.json ]; then
Expand Down

0 comments on commit 09e34ea

Please sign in to comment.