You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
353 B

  1. #!/bin/bash
  2. #FILE=${HOME}/.config/composer/auth.json
  3. #
  4. #if [[ -f "${FILE}" ]]; then
  5. # if [[ ! -z "$(cat $FILE | grep github)" ]]; then
  6. # exit 0
  7. # fi
  8. #fi
  9. echo "Get token: https://github.com/settings/tokens/new?scopes=repo&description=Composer"
  10. # user="USER INPUT"
  11. read -p "Enter token: " TOKEN
  12. composer config -g github-oauth.github.com ${TOKEN}