From c0fc6182cc9597e40ccfa6d2e2d2396f69f01c5a Mon Sep 17 00:00:00 2001 From: Mazeto Date: Wed, 15 Jan 2020 12:15:06 -0700 Subject: [PATCH] Hints to put token in environment var --- README.md | 5 +++-- gitea.sh | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d0c5453..c0311f2 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,9 @@ Go to and generate a new token. Copy the 32 bytes string that will appear on the top of the page and save it somewhere safe. - echo -en > gitea-token + echo "gitea-token=" >> ~/.bashrc ## Create a new repository. - gitea.sh newrepo reponame "Repo's description" false "CC0-1.0" true "" "" "" $(cat gitea-token) + gitea.sh newrepo reponame "Repo's description" false "CC0-1.0" true "" "" "" $gitea-token + diff --git a/gitea.sh b/gitea.sh index dcfa329..4351252 100755 --- a/gitea.sh +++ b/gitea.sh @@ -33,4 +33,3 @@ newrepo(){ if [ $1 == "newrepo" ]; then newrepo "$@"; fi -