mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-28 15:54:19 +00:00
Improve download fail handling
This commit is contained in:
parent
e30d304647
commit
173f9d45d5
@ -1425,7 +1425,10 @@ download_install() {
|
|||||||
|
|
||||||
# Sanity check
|
# Sanity check
|
||||||
if [ ! -f "$tmp_dir/$download_file" ]; then
|
if [ ! -f "$tmp_dir/$download_file" ]; then
|
||||||
debug_print exit "Script error: The requested $download_type file was not downloaded. Aborting"
|
# Something went wrong with the download and the file doesn't exist
|
||||||
|
message error "Something went wrong and the requested $download_type file could not be downloaded!"
|
||||||
|
debug_print continue "Download failed! File not found: $tmp_dir/$download_file"
|
||||||
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Extract the archive to the tmp directory
|
# Extract the archive to the tmp directory
|
||||||
|
Loading…
Reference in New Issue
Block a user