Skip to content

Commit 305d000

Browse files
committed
Fix: Unbound variable causing script to fail
When the environment variable `IGNORE_PROJECT_IDS` is not provided the GithubAction is failing with the error: ``` /src/main.sh: line 49: IGNORE_PROJECT_IDS: unbound variable ``` Setting a default empty value should solve the issue.
1 parent 8950bb7 commit 305d000

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ main() {
4646
project_id="$(teamwork::get_project_id_from_task "$task_id")"
4747
export TEAMWORK_PROJECT_ID=$project_id
4848

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

0 commit comments

Comments
 (0)