Skip to content

Commit e34c122

Browse files
authored
Enhanced clarity on is-it-up.sh (raycast#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
1 parent 6afc6ec commit e34c122

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commands/developer-utils/is-it-up.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# @raycast.packageName Developer Utils
1111
#
1212
# Optional parameters:
13-
# @raycast.icon 🩺
13+
# @raycast.icon 🌐
1414
# @raycast.argument1 { "type": "text", "placeholder": "Website" }
1515
#
1616
# Documentation:
@@ -49,16 +49,16 @@ status_code=$(curl --silent "https://isitup.org/${url}.json" | jq '.status_code'
4949
# }
5050

5151
case $status_code in
52-
1) echo "Up: $1"
52+
1) echo "$1 is up!"
5353
exit 0
5454
;;
55-
2) echo "Down: $1"
55+
2) echo "$1 is down."
5656
exit 0
5757
;;
5858
3) echo "Invalid domain: $1"
5959
exit 1
6060
;;
61-
*) echo "Unknown status code ($status_code): $1"
61+
*) echo "Error: unknown status code ($status_code): $1"
6262
exit 1
6363
;;
6464
esac

0 commit comments

Comments
 (0)