summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUeda Naoaki <nao@uedder.com>2023-03-13 17:10:05 +0900
committerUeda Naoaki <nao@uedder.com>2023-03-13 17:10:05 +0900
commitd9f8f870591d078120e7f822fb927168d9001f05 (patch)
tree7cdecd82641eadbed0129390b1ac3cf5c2f6bd47
parent017350d0ec65a273f93acccd3033b3847f09044f (diff)
downloadasustor-nas-tailscale-installer-d9f8f870591d078120e7f822fb927168d9001f05.tar.gz
asustor-nas-tailscale-installer-d9f8f870591d078120e7f822fb927168d9001f05.tar.bz2
asustor-nas-tailscale-installer-d9f8f870591d078120e7f822fb927168d9001f05.zip
Fix regex to parse the tailscale version
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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