mirror of
https://github.com/iflytek/skillhub.git
synced 2026-11-16 09:21:18 +00:00
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:
parent
8418542904
commit
ffc9c8341a
1 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue