summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-06-02 14:40:22 -0400
committerGitHub <noreply@github.com>2022-06-02 14:40:22 -0400
commit2777ecd53ea5c5c6f43713692436d1ecc0e861d5 (patch)
tree657a717afc1c99052c11b60b976d9fa80a32eba0 /contrib
parent95888735e320f57e7e12d4443a94ade42e458c5b (diff)
parent3fa09e9dba1710f97dbe0f2062685d06fb2fb243 (diff)
downloadpodman-2777ecd53ea5c5c6f43713692436d1ecc0e861d5.tar.gz
podman-2777ecd53ea5c5c6f43713692436d1ecc0e861d5.tar.bz2
podman-2777ecd53ea5c5c6f43713692436d1ecc0e861d5.zip
Merge pull request #14435 from cevich/makefile_empty
Makefile: Handle unexpected empty var. values
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cirrus/runner.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/cirrus/runner.sh b/contrib/cirrus/runner.sh
index c871f1f54..b9f43f395 100755
--- a/contrib/cirrus/runner.sh
+++ b/contrib/cirrus/runner.sh
@@ -312,6 +312,11 @@ function _run_release() {
if [[ -n "$dev" ]]; then
die "Releases must never contain '-dev' in output of 'podman info' ($dev)"
fi
+
+ commit=$(bin/podman info --format='{{.Version.GitCommit}}' | tr -d '[:space:]')
+ if [[ -z "$commit" ]]; then
+ die "Releases must contain a non-empty Version.GitCommit in 'podman info'"
+ fi
msg "All OK"
}