From 1a06eed7f87692e0684a3be49201645af99cd437 Mon Sep 17 00:00:00 2001 From: markson Date: Mon, 20 Mar 2023 18:42:24 +0800 Subject: [PATCH] Fix check tag --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index e8e2dde..1fa8ae1 100644 --- a/build.sh +++ b/build.sh @@ -1,8 +1,8 @@ #!/bin/bash -set -ex +set -e -v2rayA_latest_tag=$(curl -s https://api.github.com/repos/v2rayA/v2rayA/releases/latest | jq -r '.tag_name'| awk -F 'v' '{print $2}') +v2rayA_latest_tag=$(curl -s https://api.github.com/repos/v2rayA/v2rayA/tags | jq -r ".[]" | jq -r '.name' | awk 'NR==1 {print; exit}' | awk -F 'v' '{print $2}') v2rayA_source_url='https://github.com/v2rayA/v2rayA/archive/refs/tags/''v'"$v2rayA_latest_tag"'.tar.gz' curl -L -o v2rayA.tar.gz $v2rayA_source_url