Skip to content

Commit

Permalink
Fix check tag
Browse files Browse the repository at this point in the history
  • Loading branch information
markson committed Mar 20, 2023
1 parent a5b4636 commit 1a06eed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 1a06eed

Please sign in to comment.