mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update install_dev.sh
This commit is contained in:
@@ -49,14 +49,15 @@ if [ ! -z "$cn" ] || [ "$?" == "0" ] ;then
|
||||
HTTP_PREFIX="https://mirror.ghproxy.com/"
|
||||
fi
|
||||
|
||||
declare -A PROXY_URL
|
||||
PROXY_URL["gh-proxy\.com"]="https://gh-proxy.com"
|
||||
if [ "$LOCAL_ADDR" != "common" ];then
|
||||
declare -A PROXY_URL
|
||||
PROXY_URL['gh-proxy.com']="https://gh-proxy.com"
|
||||
SOURCE_LIST_KEY_SORT_TMP=$(echo ${!PROXY_URL[@]} | tr ' ' '\n' | sort -n)
|
||||
SOURCE_LIST_KEY=(${SOURCE_LIST_KEY_SORT_TMP//'\n'/})
|
||||
SOURCE_LIST_LEN=${#PROXY_URL[*]}
|
||||
fi
|
||||
|
||||
|
||||
SOURCE_LIST_KEY_SORT_TMP=$(echo ${!PROXY_URL[@]} | tr ' ' '\n' | sort -n)
|
||||
SOURCE_LIST_KEY=(${SOURCE_LIST_KEY_SORT_TMP//'\n'/})
|
||||
SOURCE_LIST_LEN=${#PROXY_URL[*]}
|
||||
|
||||
function AutoSizeStr(){
|
||||
NAME_STR=$1
|
||||
NAME_NUM=$2
|
||||
|
||||
Reference in New Issue
Block a user