From e88d479087b830350b110700b9d0ebc61a316803 Mon Sep 17 00:00:00 2001 From: Patrick Calahan Date: Mon, 26 Sep 2022 02:56:24 -0700 Subject: [PATCH] add check for curse token --- release.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/release.sh b/release.sh index 868eda59..61c489a7 100755 --- a/release.sh +++ b/release.sh @@ -19,6 +19,12 @@ if [ -z "${MODRINTH_TOKEN:-}" ]; then exit 1 fi +if [ -z "${CURSEFORGE_TOKEN:-}" ]; then + echo "Set CURSEFORGE_TOKEN" + exit 1 +fi + + CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) if [ "${CURRENT_BRANCH}" != 'main' ]; then echo "Releases must be performed on main. Currently on '${CURRENT_BRANCH}'"