Skip to content

Commit

Permalink
Improve download fail handling
Browse files Browse the repository at this point in the history
  • Loading branch information
the-sane committed Mar 30, 2023
1 parent e30d304 commit 173f9d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lug-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1425,7 +1425,10 @@ download_install() {

# Sanity check
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

# Extract the archive to the tmp directory
Expand Down

0 comments on commit 173f9d4

Please sign in to comment.