summaryrefslogtreecommitdiff
path: root/src/get.sh
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-02-20 02:13:54 +0000
committerdavidovski <david@davidovski.xyz>2022-02-20 02:13:54 +0000
commite5bc87ffc368799685b9c9bf0e01db35ee974540 (patch)
tree322791eae090f5b6f3f821f6f09b83c5aa199561 /src/get.sh
parent65940c0cc719311fbac5e11c81cce34563ea3f21 (diff)
added search functionality
Diffstat (limited to 'src/get.sh')
-rwxr-xr-xsrc/get.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/get.sh b/src/get.sh
index edda26e..a6821a1 100755
--- a/src/get.sh
+++ b/src/get.sh
@@ -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