diff options
author | davidovski <david@davidovski.xyz> | 2022-02-20 02:13:54 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-02-20 02:13:54 +0000 |
commit | e5bc87ffc368799685b9c9bf0e01db35ee974540 (patch) | |
tree | 322791eae090f5b6f3f821f6f09b83c5aa199561 /src/get.sh | |
parent | 65940c0cc719311fbac5e11c81cce34563ea3f21 (diff) |
added search functionality
Diffstat (limited to 'src/get.sh')
-rwxr-xr-x | src/get.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -81,16 +81,18 @@ download_packages () { if validate_checksum $output $checksum; then ${VERBOSE} && printf "${LIGHT_BLACK}skipping download for %s already exists with checksum %s${RESET}\n" $package $checksum else + ${VERBOSE} && printf "${LIGHT_BLACK}downloading $package from $url\n" $package $checksum touch $output - curl ${CURL_OPTS} -o "$output_info" "$url.info" & - curl ${CURL_OPTS} -o "$output" "$url" & + (curl ${CURL_OPTS} -o "$output_info" "$url.info" || printf "${RED}Failed to download info for %s\n" $package) & + (curl ${CURL_OPTS} -o "$output" "$url" || printf "${RED}Failed to download %s\n" $package) & fi outputs="$outputs $output" done wait_for_download $total_download ${outputs} + echo local i=0 set -- $outputs |