autoclone

This commit is contained in:
Aleksander Cynarski 2017-04-13 22:06:58 +02:00
parent d3ba30648e
commit f8c76751d0

View File

@ -68,5 +68,9 @@ else
$GOGS_ROOT_URL/api/v1/repos/$GOGS_USER/$GOGS_REPO/keys > /dev/null $GOGS_ROOT_URL/api/v1/repos/$GOGS_USER/$GOGS_REPO/keys > /dev/null
touch $HOME/.ssh/$GOGS_REPO-sended touch $HOME/.ssh/$GOGS_REPO-sended
echo "$sbody" >> $HOME/.ssh/config echo "$sbody" >> $HOME/.ssh/config
echo "Almost done. Enter clone repository target dir [ENTER]"
read cdir
git clone ssh://gogs$sshhost:65522/$GOGS_USER/$GOGS_REPO $cdir
fi fi