From 1e2839d6051c112bef30566357beb8bf09aa6d7a Mon Sep 17 00:00:00 2001 From: konsthol Date: Sat, 30 Apr 2022 17:41:17 +0300 Subject: [PATCH] To be honest, I do not quite remember everything I changed here today. But it is all good, I tell ya. --- giteaDo | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/giteaDo b/giteaDo index 73b8923..eeb5b85 100755 --- a/giteaDo +++ b/giteaDo @@ -29,7 +29,7 @@ EOF function createRepo() { curl -X POST \ -"$GITEA_URL/api/v1/user/repos?access_token=$(pass SelfHosted/giteaTokenForKonsthol | awk -F\" '{print $10}')" \ +"$GITEA_URL/api/v1/user/repos?access_token=$(pass SelfHosted/giteaTokenForKonsthol)" \ -H "accept:application/json" \ -H "Content-Type: application/json" \ -d "{ @@ -48,7 +48,7 @@ curl -X POST \ function deleteRepo() { curl -X DELETE \ -"$GITEA_URL/api/v1/repos/$USERNAME/$1?access_token=$(pass SelfHosted/giteaTokenForKonsthol | awk -F\" '{print $10}')" \ +"$GITEA_URL/api/v1/repos/$USERNAME/$1?access_token=$(pass SelfHosted/giteaTokenForKonsthol)" \ -H "accept:application/json" } @@ -56,7 +56,7 @@ curl -X DELETE \ function listRepos { RESPONSE=$(curl -s -X GET \ -"$GITEA_URL/api/v1/users/$USERNAME/repos?access_token=$(pass SelfHosted/giteaTokenForKonsthol | awk -F\" '{print $10}')" \ +"$GITEA_URL/api/v1/users/$USERNAME/repos?access_token=$(pass SelfHosted/giteaTokenForKonsthol)" \ -H "accept:application/json" \ -H "Content-Type: application/json" \ -d "{