Skip to content

Commit

Permalink
Merge pull request #493 from waynestate/hotfix/pass-github-token-to-c…
Browse files Browse the repository at this point in the history
…omposer

Pass Github Token to the composer.sh install script
  • Loading branch information
fideloper committed Oct 16, 2015
2 parents 4a0bbbb + ec6dda0 commit e6b0812
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ Vagrant.configure("2") do |config|

# Provision Composer
# You may pass a github auth token as the first argument
# config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: ["", composer_packages.join(" ")]
# config.vm.provision "shell", path: "#{github_url}/scripts/composer.sh", privileged: false, args: [github_pat, composer_packages.join(" ")]

# Provision Laravel
# config.vm.provision "shell", path: "#{github_url}/scripts/laravel.sh", privileged: false, args: [server_ip, laravel_root_folder, public_folder, laravel_version]
Expand Down
3 changes: 2 additions & 1 deletion scripts/composer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,9 @@ else
fi
fi

if [[ $GITHUB_OAUTH -ne "" ]]; then
if [[ $GITHUB_OAUTH != "" ]]; then
if [[ ! $COMPOSER_IS_INSTALLED -eq 1 ]]; then
echo ">>> Setting Github Personal Access Token"
composer config -g github-oauth.github.com $GITHUB_OAUTH
fi
fi
Expand Down

0 comments on commit e6b0812

Please sign in to comment.