From 8ca6ee347932384f7b9e387065e18e41c3c00f0a Mon Sep 17 00:00:00 2001 From: Nils Date: Mon, 20 Sep 2021 11:08:45 +0200 Subject: [PATCH] initial --- status.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 status.sh diff --git a/status.sh b/status.sh new file mode 100755 index 0000000..c3b8d88 --- /dev/null +++ b/status.sh @@ -0,0 +1,12 @@ +#!/bin/env bash + +if [[ -z "$ping_hosts" ]];then + ping_hosts="nils.lol" +fi +if [[ -z "$http_hosts" ]];then + http_hosts="https://nils.lol" +fi + +function get_code { + http_results="$(curl -s -I $http_hosts | grep HTTP)" +}