From d9f8f870591d078120e7f822fb927168d9001f05 Mon Sep 17 00:00:00 2001 From: Ueda Naoaki Date: Mon, 13 Mar 2023 17:10:05 +0900 Subject: Fix regex to parse the tailscale version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 857c7d9..bd4b3ed 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ tailscale tailscaled: downloaded .INTERMEDIATE: ver-tmp ver-tmp: - curl -s https://api.github.com/repos/tailscale/tailscale/releases/latest | perl -nle '/"name":\s*"(.+)"/ and print $$1' > $@ + curl -s https://api.github.com/repos/tailscale/tailscale/releases/latest | perl -nle '/"tag_name":\s*"v(.+)"/ and print $$1' > $@ ver: ver-tmp if [[ ! -e $@ ]] || ! cmp -s $@ $< ; then cat $< > $@ ; fi -- cgit v1.2.3-54-g00ecf