From dd532d4738230b3fec541650fa60ffb75403d939 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sat, 8 Jul 2023 15:33:08 +0200 Subject: [PATCH] push-release: fix `OAUTH_TOKEN` error handling --- helper/push-release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/helper/push-release.sh b/helper/push-release.sh index 1d65fc3..56e02e0 100755 --- a/helper/push-release.sh +++ b/helper/push-release.sh @@ -35,7 +35,8 @@ if [[ $DRY_RUN ]]; then else OAUTH_TOKEN=$(pass show nix-bitcoin/github/oauth-token) if [[ ! $OAUTH_TOKEN ]]; then - echo "Please set OAUTH_TOKEN variable" + echo "Error fetching OAUTH_TOKEN" + exit 1 fi fi