set GITEA_HOST automatically

main
Andrew Coleman 2021-04-16 13:07:11 -04:00
parent b4bcbe7f6a
commit 7670ccf799
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1,2 @@
export GITEA_ACCESS_TOKEN={{- (bitwardenFields "item" "Gitea").token.value }}
export GITEA_HOST=ssh://git@git.penguincoder.org:2222

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
GITEA_HOST=$1
GITEA_HOST=${GITEA_HOST:-1}
if [ -z "$GITEA_HOST" ] || [ -z "$GITEA_ACCESS_TOKEN" ] ; then
echo "Clones all repos that you have access to into the current directory."