mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
This seems to be a common workaround for CPack issue on macOS. Script has 10 attempts and in the worst case it will take 55 seconds for it to fail.
22 lines
364 B
Bash
Executable File
22 lines
364 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# A special wrapper for hdiutil, that retries hdiutil call with
|
|
# the progressive timeout.
|
|
# This seems to be the common workaround for the CPack problem
|
|
|
|
counter=0
|
|
max_retries=10
|
|
|
|
hdiutil $@
|
|
|
|
while [ $? -ne 0 ]; do
|
|
((counter++))
|
|
|
|
if [[ $counter -eq $max_retries ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
sleep $counter
|
|
hdiutil $@
|
|
done
|