Skip to content

Commit

Permalink
try changing logic regarding use of quotation marks
Browse files Browse the repository at this point in the history
  • Loading branch information
edwmurph committed Jun 14, 2017
1 parent 807b84b commit c2af1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ nvm_get_node_from_pkg_json() {
fi
if [ "$open_brackets" -ne 0 ] && [ "$open_brackets" -eq "$closed_brackets" ]; then
command printf "%s" "$engines_object" \
| command grep -o '"node":"[0-9a-zA-Z.<>=*~^xXv\-]\+"' \
| command tr -d '"' \
| command grep -o 'node:[0-9a-zA-Z.<>=*~^xXv\-]\+' \
| command awk -F: '{ print $2 }'
# TODO add error handling logic
return 0
Expand Down

0 comments on commit c2af1f4

Please sign in to comment.