Hints to put token in environment var

This commit is contained in:
Ricardo Mazeto 2020-01-15 12:15:06 -07:00
parent e39d0d0dc4
commit c0fc6182cc
2 changed files with 3 additions and 3 deletions

View File

@ -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 <token> > gitea-token
echo "gitea-token=<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

View File

@ -33,4 +33,3 @@ newrepo(){
if [ $1 == "newrepo" ]; then
newrepo "$@";
fi