From 18041c7537307a3937170cc23785b0a43052e31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Mon, 24 Aug 2026 18:32:51 -0400 Subject: [PATCH] cn commands: use OMARCHY_PATH per runtime convention Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp --- bin/omarchy-cn-status | 9 +++------ bin/omarchy-cn-version | 7 ++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/bin/omarchy-cn-status b/bin/omarchy-cn-status index b1823100..c4733401 100755 --- a/bin/omarchy-cn-status +++ b/bin/omarchy-cn-status @@ -4,12 +4,9 @@ set -euo pipefail -OMARCHY_BIN_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd) -ROOT="${OMARCHY_BIN_DIR%/bin}" - -echo "OmarchyCN $("$OMARCHY_BIN_DIR/omarchy-cn-version")" -echo "Omarchy upstream: $(<"$ROOT/version")" -echo "Root: $ROOT" +echo "OmarchyCN $(omarchy-cn-version)" +echo "Omarchy upstream: $(<"$OMARCHY_PATH/version")" +echo "Root: $OMARCHY_PATH" config="$HOME/.config/omarchycn" state="$HOME/.local/state/omarchycn" diff --git a/bin/omarchy-cn-version b/bin/omarchy-cn-version index b824871d..a454c386 100755 --- a/bin/omarchy-cn-version +++ b/bin/omarchy-cn-version @@ -4,10 +4,7 @@ set -euo pipefail -OMARCHY_BIN_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd) -ROOT="${OMARCHY_BIN_DIR%/bin}" - -upstream=$(<"$ROOT/version") -release=$(<"$ROOT/cn/release") +upstream=$(<"$OMARCHY_PATH/version") +release=$(<"$OMARCHY_PATH/cn/release") echo "${upstream}-cn.${release}"