Skip to content
Snippets Groups Projects
Commit 3700d05f authored by echicken's avatar echicken :chicken:
Browse files

Allow use of existing zip archive

If temp/webv4.zip exists, prompt to overwrite it (default: Yes).
If No is selected, download will be bypassed and the existing
archive will be extracted.
Workaround for those times when downloads from GitHub fail.
parent 791fd33b
No related branches found
No related tags found
No related merge requests found
......@@ -197,10 +197,12 @@ if (typeof named_parameters.defaults == 'undefined' && deny('Proceed with instal
}
write('\r\n\r\n---\r\n\r\n');
writeln('Downloading ' + zip_url);
if (!download(zip_url, download_target)) {
writeln('Download of ' + zip_url + ' failed. Exiting.');
exit();
if (!file_exists(download_target) || confirm(download_target + ' present. Overwrite')) {
writeln('Downloading ' + zip_url);
if (!download(zip_url, download_target)) {
writeln('Download of ' + zip_url + ' failed. Exiting.');
exit();
}
}
writeln('Extracting ' + download_target);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment