Mirror manager: shellcheck fixes

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
This commit is contained in:
2026-08-24 18:35:11 -04:00
co-authored by Claude Fable 5
parent 2bcf0a20f0
commit 434f848dd8
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ target="${1:?usage: omarchycn mirror apply <china|official|mirror-id>}"
case "$target" in
china)
echo "Benchmarking China mirrors..."
mapfile -t ranked < <(cn_mirror_rank $(cn_mirror_ids_by_region cn))
mapfile -t cn_ids < <(cn_mirror_ids_by_region cn)
mapfile -t ranked < <(cn_mirror_rank "${cn_ids[@]}")
if (( ${#ranked[@]} == 0 )); then
echo "No healthy China mirror reachable; keeping current mirrorlist" >&2
exit 1
+1
View File
@@ -1,3 +1,4 @@
# shellcheck shell=bash
# Sourced helpers for omarchy-cn-mirror-* commands
CN_MIRRORS_JSON="$OMARCHY_PATH/cn/mirrors.json"