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

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