From bb0bace87179142ee04dfa7f6f790dc557589337 Mon Sep 17 00:00:00 2001 From: Diogo Nicoleti Date: Thu, 26 Sep 2024 12:13:09 -0300 Subject: [PATCH] fix validation to fail when the rule_name is empty (#223) --- src/scripts/deploy_ecs_scheduled_task.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/deploy_ecs_scheduled_task.sh b/src/scripts/deploy_ecs_scheduled_task.sh index a00efb8..fc0a946 100644 --- a/src/scripts/deploy_ecs_scheduled_task.sh +++ b/src/scripts/deploy_ecs_scheduled_task.sh @@ -8,7 +8,7 @@ fi ORB_STR_RULE_NAME="$(circleci env subst "${ORB_STR_RULE_NAME}")" -if [[ -n $ORB_STR_RULE_NAME ]]; then +if [ -z "$ORB_STR_RULE_NAME" ]; then echo "To deploy with an scheduled task, you must provide a rule name" exit 1 fi