This commit is contained in:
Sebastià Baró 2023-04-13 11:27:59 +02:00 committed by GitHub
commit 446d1bf6e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 9 deletions

View File

@ -194,7 +194,17 @@ function download_component() {
elif [ "$curlpkg" == "true" ]; then
show_message "using curl to download $4"
curl $3 -o $1
while true; do
curl -C - --progress-bar -o $1 $3
if [ $? -eq 0 ]; then
notify-send "Photoshop CC" "$4 download completed" -i "download"
break
else
show_message "Download failed, waiting before retrying..."
sleep $((tout*5))
((tout++))
fi
done
else
show_message "using wget to download $4"
wget --no-check-certificate "$3" -P "$CACHE_PATH"