diff --git a/bin/joj3-forge-convert b/bin/joj3-forge-convert index 882c47c..53cd0c4 100755 --- a/bin/joj3-forge-convert +++ b/bin/joj3-forge-convert @@ -72,6 +72,10 @@ EOF GITEA_ORG_NAME=$org_name GITEA_ACCESS_TOKEN=$TEAPOT_GITEA_TOKEN EOF + if ! joint-teapot joj3-check-gitea-token "$teapot_config_dir/teapot.env"; then + echo "FATAL: TEAPOT_GITEA_TOKEN invalid, cannot get current Gitea user" >&2 + exit 1 + fi else echo "FATAL: TEAPOT_GITEA_TOKEN not set" >&2 exit 1