INNER CODE UNIT · Shell

failed_count

pirovc/genome_updater · genome_updater.sh:822

        failed_count=$((total_files - downloaded_count))

        echolog " - $((total_files - failed_count))/${total_files} files successfully downloaded" "1"
        # If no failures, break
        if [ "${failed_count}" -eq 0 ]; then
            break
        fi
    done

    # Output URL reports
    if [ "${url_list}" -eq 1 ]; then
        # add left overs of the list to the failed urls
        join <(sort "${url_list_download}") <(sort "${url_success_download}") -v 1 >>"${target_output_prefix}${timestamp}_url_failed.txt"
        # add successful downloads the the downloaded urls
        cat "${url_success_download}" >>"${target_output_prefix}${timestamp}_url_downloaded.txt"
    fi
    rm -f "${url_list_download}" "${url_success_download}"
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…