Sanitize input

Signed-off-by: Christian Richter <crichter@suse.com>
This commit is contained in:
Christian Richter
2021-09-03 15:04:32 +02:00
parent d9f8f58279
commit 402f890365
2 changed files with 20 additions and 10 deletions

View File

@@ -6,8 +6,16 @@ ORG=${ORG:-dragonchaser}
REPO=${REPO:-dockerhub-autobuild}
OS=${OS:-linux}
if [ -z "${ORG}" ]; then
echo "missing ORG, bailing out!"
fi
if [ -z "${REPO}" ]; then
echo "missing REPO, bailing out!"
fi
if [ -z "${TOKEN}" ]; then
echo "MISSING TOKEN, BAILING OUT!"
echo "missing TOKEN, bailing out!"
exit 1
fi