From d5d7f75ddebaf8bb700e9bdc02e9d0e3dffe5dd1 Mon Sep 17 00:00:00 2001 From: the Sane <3657071+the-sane@users.noreply.github.com> Date: Wed, 27 Oct 2021 23:54:51 -0400 Subject: [PATCH] Cleanup redundant code --- lug-helper.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index fb0419f..d849725 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -966,10 +966,6 @@ download_install() { if [ "$num_dirs" -eq 0 ] && [ "$num_files" -eq 0 ]; then # Sanity check message warning "The downloaded archive is empty. There is nothing to do." - # Cleanup tmp download - debug_print continue "Removing $tmp_dir/$download_file..." - rm "$tmp_dir/$download_file" - return 1 elif [ "$num_dirs" -eq 1 ] && [ "$num_files" -eq 0 ]; then # If the archive contains only one directory, install that directory debug_print continue "Installing $download_type into $download_dir..."