diff --git a/scripts/retrieve-old-report.sh b/scripts/retrieve-old-report.sh index 5639e73..792b43c 100755 --- a/scripts/retrieve-old-report.sh +++ b/scripts/retrieve-old-report.sh @@ -40,7 +40,7 @@ has_report() { # If a base branch is not provided, use the default branch base_branch=${BASE_BRANCH:-$(default_branch)} -if ! in_private_repo && [ "$JOB_NAME" ]; then +if [ "$(in_private_repo)" != 'true' ] && [ "$JOB_NAME" ]; then url=$(base_report_url "$base_branch") log "Found previous run at: $url"