mirror of
https://github.com/RROrg/rr.git
synced 2026-02-19 16:52:51 +08:00
优化标签提取逻辑,移除版本前缀并统一处理,更新相关脚本和配置文件
This commit is contained in:
@@ -71,8 +71,7 @@ while true; do
|
||||
shift 2
|
||||
;;
|
||||
--tag)
|
||||
TAG="$2"
|
||||
[ "${TAG:0:1}" = "v" ] && TAG="${TAG:1}"
|
||||
TAG="$(echo "$2" | sed 's/^[v|V]//g')"
|
||||
shift 2
|
||||
;;
|
||||
--img)
|
||||
@@ -97,8 +96,7 @@ if ! command -v qm >/dev/null 2>&1; then
|
||||
fi
|
||||
|
||||
if [ -z "$TAG" ]; then
|
||||
TAG="$(curl -skL --connect-timeout 10 -w "%{url_effective}" -o /dev/null "${REPO}/releases/latest" | awk -F'/' '{print $NF}')"
|
||||
[ "${TAG:0:1}" = "v" ] && TAG="${TAG:1}"
|
||||
TAG="$(curl -skL --connect-timeout 10 -w "%{url_effective}" -o /dev/null "${REPO}/releases/latest" | awk -F'/' '{print $NF}' | sed 's/^[v|V]//g')"
|
||||
fi
|
||||
|
||||
if [ -n "${IMG}" ] && [ -f "${IMG}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user