Browse Source

fix: speedtest binary release, shell format

master
dnomd343 3 years ago
parent
commit
3db9cef3b4
  1. 6
      cn.sh

6
cn.sh

@ -88,7 +88,7 @@ speedtest_setup() {
[[ -e './st-temp/speedtest' ]] && return [[ -e './st-temp/speedtest' ]] && return
echo -e "正在获取Speedtest-cli...\c" echo -e "正在获取Speedtest-cli...\c"
mkdir -p ./st-temp/speedtest-cli mkdir -p ./st-temp/speedtest-cli
wget --no-check-certificate -qO ./st-temp/speedtest.tgz https://bintray.com/ookla/download/download_file?file_path=ookla-speedtest-1.0.0-$(uname -m)-linux.tgz > /dev/null 2>&1 wget --no-check-certificate -qO ./st-temp/speedtest.tgz https://install.speedtest.net/app/cli/ookla-speedtest-1.0.0-$(uname -m)-linux.tgz > /dev/null 2>&1
tar zxvf ./st-temp/speedtest.tgz -C ./st-temp/speedtest-cli/ > /dev/null 2>&1 tar zxvf ./st-temp/speedtest.tgz -C ./st-temp/speedtest-cli/ > /dev/null 2>&1
mv ./st-temp/speedtest-cli/speedtest ./st-temp/speedtest-cli/speedtest.5 ./st-temp/ mv ./st-temp/speedtest-cli/speedtest ./st-temp/speedtest-cli/speedtest.5 ./st-temp/
chmod a+rx ./st-temp/speedtest chmod a+rx ./st-temp/speedtest
@ -216,12 +216,8 @@ init() {
get_server get_server
} }
main() {
init init
select_isp select_isp
clear clear
runtest runtest
clear_env clear_env
}
main

Loading…
Cancel
Save