From e34c122123bbb184b4d7bfef128355323a2848c6 Mon Sep 17 00:00:00 2001 From: Will Feldman <13539982+willfeldman@users.noreply.github.com> Date: Tue, 21 Feb 2023 22:56:29 -0500 Subject: [PATCH] Enhanced clarity on is-it-up.sh (#824) * Enhanced clarity on is-it-up.sh Add the option for users to be notified of the status through system notification and changed wording of messaging for clarity. * Update is-it-up.sh --- commands/developer-utils/is-it-up.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/developer-utils/is-it-up.sh b/commands/developer-utils/is-it-up.sh index a92c62e8e..dde2acae3 100755 --- a/commands/developer-utils/is-it-up.sh +++ b/commands/developer-utils/is-it-up.sh @@ -10,7 +10,7 @@ # @raycast.packageName Developer Utils # # Optional parameters: -# @raycast.icon 🩺 +# @raycast.icon 🌐 # @raycast.argument1 { "type": "text", "placeholder": "Website" } # # Documentation: @@ -49,16 +49,16 @@ status_code=$(curl --silent "https://isitup.org/${url}.json" | jq '.status_code' # } case $status_code in - 1) echo "Up: $1" + 1) echo "$1 is up!" exit 0 ;; - 2) echo "Down: $1" + 2) echo "$1 is down." exit 0 ;; 3) echo "Invalid domain: $1" exit 1 ;; - *) echo "Unknown status code ($status_code): $1" + *) echo "Error: unknown status code ($status_code): $1" exit 1 ;; esac