+ php 8.1

* refactoring composer version & auth secrets apply separate for workspaces
This commit is contained in:
2022-11-21 10:25:35 +03:00
parent d625dbb158
commit c3d132b120
26 changed files with 390 additions and 74 deletions

View File

@ -1,15 +1,15 @@
#!/bin/bash
FILE=${HOME}/.config/composer/auth.json
if [[ -f "${FILE}" ]]; then
if [[ ! -z "$(cat $FILE | grep github)" ]]; then
exit 0
fi
fi
#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}
composer config -g github-oauth.github.com ${TOKEN}