chore(script): update app vsn check script

This commit is contained in:
zhanghongtong 2021-05-27 11:27:26 +08:00 committed by turtleDeng
parent 439c0d6fa8
commit f61397fe9a
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
#!/bin/bash
set -euo pipefail
latest_release=$(git describe --tags "$(git rev-list --tags --max-count=1 --remotes=refs/remote/origin)")
remote="refs/remote/$(git remote -v | grep fetch | grep 'emqx/emqx' | awk '{print $1}')"
latest_release=$(git describe --tags "$(git rev-list --tags --max-count=1 --remotes="$remote")")
bad_app_count=0