Fix version format

This commit is contained in:
2023-06-27 15:34:43 -04:00
parent 1a975bbe6f
commit 1cbea322d6

View File

@@ -565,12 +565,15 @@ fromSource() {
execute "${wt_cmd[@]}" origin/main execute "${wt_cmd[@]}" origin/main
;; ;;
[0-9][0-9].[0-9][0-9].*) [0-9][0-9].[0-9][0-9].*)
branch="openwrt-${RELEASE%.*}" local branch="openwrt-${RELEASE%.*}"
tag="v$RELEASE" local tag="v$RELEASE"
if askOk "Use HEAD of $branch branch (y, recommended) or $tag tag (n)?"; then local r
execute "${wt_cmd[@]}" "origin/$tag" read -r -p "Use HEAD of $branch branch (y, recommended) or $tag tag (n)?" r
else r=${r,,}
if [[ "$r" =~ ^(yes|y)$ ]]; then
execute "${wt_cmd[@]}" "origin/$branch" execute "${wt_cmd[@]}" "origin/$branch"
else
execute "${wt_cmd[@]}" "$tag"
fi fi
;; ;;
*) *)