Correct code flag behaviour

This commit is contained in:
akiel
2020-08-15 12:43:31 +02:00
parent a00e2b9fc1
commit d43c92f406
+5 -1
View File
@@ -1,2 +1,6 @@
#!/usr/bin/env sh
rocketchat-notification -u "$1" -p "$2" -m "$3" -s "$4" -c "$5" -code "$6"
if $6 == "true"; then
rocketchat-notification -u "$1" -p "$2" -m "$3" -s "$4" -c "$5" -code
else
rocketchat-notification -u "$1" -p "$2" -m "$3" -s "$4" -c "$5"
fi