From 6ad719ded051c9b40597c76f320a8c2b20961f55 Mon Sep 17 00:00:00 2001 From: fliegerjohn Date: Tue, 22 Aug 2023 17:27:06 +0200 Subject: [PATCH] Delete output.txt and remove option with curl --- checkconnection.sh | 4 ++-- output.txt | 0 2 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 output.txt diff --git a/checkconnection.sh b/checkconnection.sh index bb6e3c9..5028486 100755 --- a/checkconnection.sh +++ b/checkconnection.sh @@ -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." diff --git a/output.txt b/output.txt deleted file mode 100644 index e69de29..0000000