Skip to content

Commit

Permalink
fix validation to fail when the rule_name is empty (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
diogonicoleti authored Sep 26, 2024
1 parent b2b0131 commit bb0bace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/deploy_ecs_scheduled_task.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb0bace

Please sign in to comment.