Skip to content

Commit

Permalink
Merge pull request #591 from manicmaniac/add-macports-bin-path
Browse files Browse the repository at this point in the history
Fix Codegen fail for MacPorts users
  • Loading branch information
designatednerd authored Jun 27, 2019
2 parents e0ec8aa + 3526823 commit f5955e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/check-and-run-apollo-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ if [[ -z "$CONFIGURATION" ]]; then
exit 1
fi

# Add MacPorts default bin path if the user has `port` command.
if [[ -x /opt/local/bin/port ]]; then
PATH="$PATH:/opt/local/bin"
fi

use_correct_node_via_nvm() {
nvm version $REQUIRED_NODE_VERSION > /dev/null
if [[ $? -eq 0 ]]; then
Expand Down

0 comments on commit f5955e5

Please sign in to comment.