Skip to content

Commit 68617fb

Browse files
authored
Compare status codes in a case-insensitive manner
1 parent 5adf78a commit 68617fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

send.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ echo -e "[Webhook]: Sending webhook to Discord...\\n";
1212

1313
AVATAR="https://github.com/actions.png"
1414

15-
case $1 in
16-
"Success" )
15+
case ${1,,} in
16+
"success" )
1717
EMBED_COLOR=3066993
1818
STATUS_MESSAGE="Passed"
1919
;;
2020

21-
"Failure" )
21+
"failure" )
2222
EMBED_COLOR=15158332
2323
STATUS_MESSAGE="Failed"
2424
;;

0 commit comments

Comments
 (0)