File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# 判断环境和下载路径
4- if [[ " $ENV " == " development" ]]; then
5- MAC_URL=" http://$NEXUS_HOST_PORT /repository/raw-hosted/intel-ai-pc/oadin/dist/mac/$MAC_FILE_NAME "
6- WIN_URL=" http://$NEXUS_HOST_PORT /repository/raw-hosted/intel-ai-pc/oadin/dist/win/$WIN_FILE_NAME "
4+ # if [[ "$ENV" == "development" ]]; then
5+ # MAC_URL="http://$NEXUS_HOST_PORT/repository/raw-hosted/intel-ai-pc/oadin/dist/mac/$MAC_FILE_NAME"
6+ # WIN_URL="http://$NEXUS_HOST_PORT/repository/raw-hosted/intel-ai-pc/oadin/dist/win/$WIN_FILE_NAME"
7+ # else
8+ # MAC_URL="https://oss-aipc.dcclouds.com/oadin/dist/macos/$MAC_FILE_NAME"
9+ # WIN_URL="https://oss-aipc.dcclouds.com/oadin/dist/windows/$WIN_FILE_NAME"
10+ # fi
11+
12+ # 如果$MAC_FILE_NAME和$WIN_FILE_NAME都包含test,则使用测试地址
13+ if [[ " $MAC_FILE_NAME " == * " test" * && " $WIN_FILE_NAME " == * " test" * ]]; then
14+ MAC_URL=" http://10.3.70.145:32018/repository/raw-hosted/intel-ai-pc/oadin/dist/mac/$MAC_FILE_NAME "
15+ WIN_URL=" http://10.3.70.145:32018/repository/raw-hosted/intel-ai-pc/oadin/dist/win/$WIN_FILE_NAME "
716else
817 MAC_URL=" https://oss-aipc.dcclouds.com/oadin/dist/macos/$MAC_FILE_NAME "
918 WIN_URL=" https://oss-aipc.dcclouds.com/oadin/dist/windows/$WIN_FILE_NAME "
You can’t perform that action at this time.
0 commit comments