Compare commits

..

2 Commits

Author SHA1 Message Date
the-sane
1b334db7cc Check if it's already been installed 2022-10-17 17:17:21 -04:00
the-sane
dc648a8f6f Clean up extracted directories too 2022-10-17 16:48:11 -04:00

View File

@ -1057,6 +1057,12 @@ download_install() {
;; ;;
esac esac
# Check if this file has already been installed
if [ -d "$download_dir/$download_name" ]; then
message info "The selected $download_type is already installed:\n\n$download_name"
return 0
fi
# Get the selected download url # Get the selected download url
# To add new sources, handle them here and in the # To add new sources, handle them here and in the
# download_select_install function below # download_select_install function below
@ -1176,6 +1182,7 @@ download_install() {
# Cleanup tmp download # Cleanup tmp download
debug_print continue "Cleaning up $tmp_dir/$download_file..." debug_print continue "Cleaning up $tmp_dir/$download_file..."
rm "$tmp_dir/$download_file" rm "$tmp_dir/$download_file"
rm -r "$tmp_dir/$download_name"
} }
# List available items for download # List available items for download