Skip to content

Commit

Permalink
Enhanced clarity on is-it-up.sh (raycast#824)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
willfeldman authored Feb 22, 2023
1 parent 6afc6ec commit e34c122
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/developer-utils/is-it-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# @raycast.packageName Developer Utils
#
# Optional parameters:
# @raycast.icon 🩺
# @raycast.icon 🌐
# @raycast.argument1 { "type": "text", "placeholder": "Website" }
#
# Documentation:
Expand Down Expand Up @@ -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

0 comments on commit e34c122

Please sign in to comment.