We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 449afbc commit 80075aeCopy full SHA for 80075ae
src/scripts/unix.sh
@@ -89,6 +89,12 @@ get() {
89
echo "Another process is downloading a file at $file_path, waiting"
90
sleep 1
91
done
92
+ if [ "$execute" = "-e" ]; then
93
+ until [ -z "$(fuser "$file_path" 2>/dev/null)" ]; do
94
+ echo "Waiting for other processes to stop using $file_path..."
95
+ sleep 1
96
+ done
97
+ fi
98
trap 'sudo rm -rf "$lock_path"' EXIT SIGINT SIGTERM
99
for link in "${links[@]}"; do
100
status_code=$(sudo curl -w "%{http_code}" -o "$file_path" "${curl_opts[@]}" "$link")
0 commit comments