install sh

This commit is contained in:
qiaofeng1227 2023-06-09 17:56:27 +08:00
parent 1d81684850
commit 43622e52bb
2 changed files with 2 additions and 4 deletions

View file

@ -323,9 +323,8 @@ function fastest_url() {
for url in "${urls[@]}"; do for url in "${urls[@]}"; do
if curl --output /dev/null --silent --head --fail "$url"; then if curl --output /dev/null --silent --head --fail "$url"; then
echo $url" is available" data="url is available"
else else
echo $url" is not available"
continue continue
fi fi
time=$(curl --connect-timeout 3 -s -w '%{time_total}\n' -o /dev/null $url) time=$(curl --connect-timeout 3 -s -w '%{time_total}\n' -o /dev/null $url)

View file

@ -78,9 +78,8 @@ function fastest_url() {
for url in "${urls[@]}"; do for url in "${urls[@]}"; do
if curl --output /dev/null --silent --head --fail "$url"; then if curl --output /dev/null --silent --head --fail "$url"; then
echo $url" is available" data="url is available"
else else
echo $url" is not available"
continue continue
fi fi
time=$(curl --connect-timeout 3 -s -w '%{time_total}\n' -o /dev/null $url) time=$(curl --connect-timeout 3 -s -w '%{time_total}\n' -o /dev/null $url)