diff --git a/setup-key.sh b/setup-key.sh index a3f88d5..7d03c77 100755 --- a/setup-key.sh +++ b/setup-key.sh @@ -25,7 +25,8 @@ if [ -e "${KEYFILE}" ]; then echo "Found existing key in ${KEYFILE}, aborting." echo "Printing private key:" cat "${KEYFILE}" - exit 1 + echo "Add this as 'PAGES_SSH_KEY' to the repository secrets." + exit 0 fi URL="https://git.abstractnonsen.se/${OWNER}/${REPOSITORY}" @@ -52,5 +53,6 @@ echo "command=\"${DEPLOY_SCRIPT} ${OWNER} ${REPOSITORY}\",no-port-forwarding,no- echo "Generate and configured new key in ${KEYFILE}" echo "Printing private key:" cat "${KEYFILE}" +echo "Add this as 'PAGES_SSH_KEY' to the repository secrets." exit 0