diff --git a/scripts/commands/codebuild/builds.bash b/scripts/commands/codebuild/builds.bash index 60e4ded..5cdcb97 100644 --- a/scripts/commands/codebuild/builds.bash +++ b/scripts/commands/codebuild/builds.bash @@ -14,7 +14,7 @@ PROJECTS=$(awscli codebuild list-projects --output text --query "projects[$(auto select_one Project "$PROJECTS" -BUILD_IDS=$(awscli codebuild list-builds-for-project --max-items "$MAX_BUILDS" --project-name "$SELECTED" --output text --query "ids[].[@]" | sed '$d' ) +BUILD_IDS=$(awscli codebuild list-builds-for-project --max-items "$MAX_BUILDS" --project-name "$SELECTED" --output text --query "ids[].[@]" | sed 's/^None$//g') awscli codebuild batch-get-builds --output table --query "reverse(builds)[$(auto_filter_joined id buildNumber currentPhase buildStatus -- "$SECOND_RESOURCE")].{ \"1.Id\":id, @@ -22,4 +22,4 @@ awscli codebuild batch-get-builds --output table --query "reverse(builds)[$(auto \"3.Phase\":currentPhase, \"4.Status\":buildStatus, \"5.StartedAt\":startTime, - \"6.FinishedAt\":endTime}" --ids $BUILD_IDS \ No newline at end of file + \"6.FinishedAt\":endTime}" --ids $BUILD_IDS