Drop identical analytics download branches in runtime

Both raw bases publish compose.analytics-umami.yml at the root, so the
Aliyun and GitHub branches fetched the same path. No behavior change.

Signed-off-by: 千乘妍 (Xiaoyaner) <258399167+xiaoyaner0201@users.noreply.github.com>
This commit is contained in:
千乘妍 (Xiaoyaner) 2026-11-03 01:33:01 +08:00
parent 8418542904
commit ffc9c8341a

View file

@ -446,12 +446,8 @@ run_analytics_compose() {
prepare_analytics_files() {
mkdir -p "$ANALYTICS_HOME"
if [ "$USE_ALIYUN" = "true" ]; then
analytics_source="$SKILLHUB_RAW_BASE/compose.analytics-umami.yml"
else
analytics_source="$SKILLHUB_RAW_BASE/compose.analytics-umami.yml"
fi
download_file "$analytics_source" "$ANALYTICS_COMPOSE_FILE"
# GitHub raw and the OSS mirror both publish files at the repository root.
download_file "$SKILLHUB_RAW_BASE/compose.analytics-umami.yml" "$ANALYTICS_COMPOSE_FILE"
if [ ! -f "$ANALYTICS_ENV_FILE" ]; then
old_umask="$(umask)"
umask 077