From 4701a8b65ffd175d4dd2524ea5f05b2fba1bd51a Mon Sep 17 00:00:00 2001 From: iwilltry42 Date: Thu, 25 Jul 2019 13:11:34 +0200 Subject: [PATCH] make make error out if no K3S_TAG was found or set --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 391e2a45..f99f3107 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,9 @@ endif # get latest k3s version K3S_TAG := $(shell curl --silent "https://api.github.com/repos/rancher/k3s/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') +ifeq ($(K3S_TAG),) +$(error "K3S_TAG undefined: couldn't get latest k3s image tag!") +endif # Go options GO ?= go