From e81fda982372061fca56c7e43d1df1653446d2a8 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 3 Dec 2021 20:34:54 -0700 Subject: [PATCH] ci: make the on_master_success script fail on missing args --- ci/srht/on_master_success | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ci/srht/on_master_success b/ci/srht/on_master_success index 07632e737a4c6470dc42628b65e809ae55131d28..e565a1e3a8fcc8315be2a9f2e3820e4442d1fe96 100755 --- a/ci/srht/on_master_success +++ b/ci/srht/on_master_success @@ -15,6 +15,16 @@ VERSION="$1" OAUTH_TOKEN="$2" YML_FILE="tmp.yml" +if [[ -z "$VERSION" ]]; then + echo "missing VERSION parameter" + exit 1 +fi + +if [[ -z "$OAUTH_TOKEN" ]]; then + echo "missing OAUTH_TOKEN parameter" + exit 1 +fi + cat <"$YML_FILE" image: alpine/latest packages: -- 2.54.0