Skip to content

Commit

Permalink
Merge pull request #50 from Teamwork/fix/unbound-variable
Browse files Browse the repository at this point in the history
Fix: Unbound variable causing script to fail
  • Loading branch information
rafaeljusto authored Dec 14, 2021
2 parents 8950bb7 + 305d000 commit d56a862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ main() {
project_id="$(teamwork::get_project_id_from_task "$task_id")"
export TEAMWORK_PROJECT_ID=$project_id

ignored_project_ids=("$IGNORE_PROJECT_IDS")
ignored_project_ids=("${IGNORE_PROJECT_IDS:-}")
if (( ${#ignored_project_ids[@]} != 0 )) || utils::in_array "$1" "${ignored_project_ids[*]}"
then
log::message "ignored due to IGNORE_PROJECT_IDS"
Expand Down

0 comments on commit d56a862

Please sign in to comment.