From 391755a3099691f080907205f5672083c6a5abf1 Mon Sep 17 00:00:00 2001 From: lmq8267 <119713693+lmq8267@users.noreply.github.com> Date: Fri, 19 Jan 2024 18:34:03 +0800 Subject: [PATCH] Update Makefile --- caddy/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/caddy/Makefile b/caddy/Makefile index c03060e..d8dff3e 100644 --- a/caddy/Makefile +++ b/caddy/Makefile @@ -7,7 +7,10 @@ include $(TOPDIR)/rules.mk PKG_NAME:=caddy -PKG_VERSION:=$(shell curl -L -k https://github.com/caddyserver/caddy/releases/latest | grep -o -E "v[0-9]+\.[0-9]+\.[0-9]+" | head -n 1 | cut -c 2-) +PKG_VERSION:=$(shell curl -L -k -s https://github.com/caddyserver/caddy/releases/latest | grep 'tag_name' | cut -d\" -f4 | tr -d ' v') +ifeq ($(PKG_VERSION),) + PKG_VERSION:=2.7.6 +endif PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz