diff --git a/bin/omarchy-cn-update b/bin/omarchy-cn-update index e26deec8..3bf76838 100755 --- a/bin/omarchy-cn-update +++ b/bin/omarchy-cn-update @@ -39,7 +39,7 @@ beta) git -C "$src" checkout -q "$tag" ;; stable) - tag=$(git -C "$src" tag -l "*-cn.*" | grep -vE "alpha|beta|rc" | sort -V | tail -1) + tag=$(git -C "$src" tag -l "*-cn.*" | grep -vE "alpha|beta|rc" | sort -V | tail -1 || true) if [[ -z $tag ]]; then echo "当前尚无 stable 发布(omarchycn channel beta 可跟随预发布)" >&2 exit 1