Compare commits

..

2 Commits

Author SHA1 Message Date
Gil Portenseigne 1a32fb8c3f ajout d'un echo dans le getBearer 2024-07-08 09:12:22 +02:00
Gil Portenseigne 38def770f9 Ajout alias ssh-add 2024-07-08 09:12:22 +02:00
2 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ alias yd="yadm diff"
alias ys="yadm status" alias ys="yadm status"
alias yup="yadm pull --rebase" alias yup="yadm pull --rebase"
alias yp="yadm push" alias yp="yadm push"
alias sa="ssh-add"
alias todo="vi ~/Nextcloud/TODO/todo.txt" alias todo="vi ~/Nextcloud/TODO/todo.txt"
alias sysup="sudo apt update && sudo apt upgrade -y" alias sysup="sudo apt update && sudo apt upgrade -y"
alias g="./gradlew" alias g="./gradlew"

View File

@ -41,6 +41,8 @@ if [ -n "$SCOPE" ]; then
REQUEST_BODY="${REQUEST_BODY}&scope=${SCOPE// /%20}" REQUEST_BODY="${REQUEST_BODY}&scope=${SCOPE// /%20}"
fi fi
echo "curl -s -X POST $TOKEN_URL -H Content-Type: application/x-www-form-urlencoded -d $REQUEST_BODY"
# Get the OAuth2 token # Get the OAuth2 token
response=$(curl -s -X POST "$TOKEN_URL" \ response=$(curl -s -X POST "$TOKEN_URL" \
-H "Content-Type: application/x-www-form-urlencoded" \ -H "Content-Type: application/x-www-form-urlencoded" \