From b9edfd2e61c8cee598b648375f926494d44acda9 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Tue, 23 May 2023 15:29:01 +1000 Subject: [PATCH] it's working --- create.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/create.sh b/create.sh index 5677861..8623a02 100755 --- a/create.sh +++ b/create.sh @@ -4,14 +4,14 @@ REPO_NAME=$(basename $(pwd)) GITEA_USERNAME=aynish CREATE_REPO=true -curl -X POST -H "Content-Type: application/json" -d "{ \"name\": \"${REPO_NAME}\"}" \ +curl -X 'POST' -H "Content-Type: application/json" -d "{ \"name\": \"${REPO_NAME}\"}" \ -H "Authorization: token ${GITEA_TOKEN}" \ - "https://git.sealight.xyz/api/v1/user/repo" + "https://git.sealight.xyz/api/v1/user/repos" if [ ${CREATE_REPO} ]; then git init git add . git commit -m "Initial Commit" - git remote add "gitea@git.sealight.xyz:${GITEA_USERNAME}/${REPO_NAME}.git" + git remote add origin "gitea@git.sealight.xyz:${GITEA_USERNAME}/${REPO_NAME}.git" git push fi