Delete output.txt and remove option with curl

This commit is contained in:
Fliegerjohn 2023-08-22 17:27:06 +02:00
parent eec831c560
commit 6ad719ded0
2 changed files with 2 additions and 2 deletions

View file

@ -24,13 +24,13 @@ pingbin=`type -tp ping`
testwithcurl() {
echo "Testing with curl..."
status=$(curl --write-out "%{http_code}\n" "$testsite1" --output output.txt --silent)
status=$(curl --write-out "%{http_code}\n" "$testsite1" --silent)
if [[ "$status" = "204" ]]; then
echo "The connection is up!"
else
status2=$(curl --write-out "%{http_code}\n" "$testsite2" --output output.txt --silent)
status2=$(curl --write-out "%{http_code}\n" "$testsite2" --silent)
if [[ "$status2" = "204" ]]; then
echo "The network is up, but $testsite1 is down."

View file