mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
install sh
This commit is contained in:
parent
1d81684850
commit
43622e52bb
2 changed files with 2 additions and 4 deletions
|
@ -323,9 +323,8 @@ function fastest_url() {
|
|||
|
||||
for url in "${urls[@]}"; do
|
||||
if curl --output /dev/null --silent --head --fail "$url"; then
|
||||
echo $url" is available"
|
||||
data="url is available"
|
||||
else
|
||||
echo $url" is not available"
|
||||
continue
|
||||
fi
|
||||
time=$(curl --connect-timeout 3 -s -w '%{time_total}\n' -o /dev/null $url)
|
||||
|
|
|
@ -78,9 +78,8 @@ function fastest_url() {
|
|||
|
||||
for url in "${urls[@]}"; do
|
||||
if curl --output /dev/null --silent --head --fail "$url"; then
|
||||
echo $url" is available"
|
||||
data="url is available"
|
||||
else
|
||||
echo $url" is not available"
|
||||
continue
|
||||
fi
|
||||
time=$(curl --connect-timeout 3 -s -w '%{time_total}\n' -o /dev/null $url)
|
||||
|
|
Loading…
Reference in a new issue