From d43c92f4067070dc0179329c5c9dae32db283a74 Mon Sep 17 00:00:00 2001 From: akiel Date: Sat, 15 Aug 2020 12:43:31 +0200 Subject: [PATCH] Correct code flag behaviour --- entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 81f5575..2e60697 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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