From 1b334db7cc30207ab5340767ea9dfc020969e100 Mon Sep 17 00:00:00 2001 From: the-sane <3657071+the-sane@users.noreply.github.com> Date: Mon, 17 Oct 2022 17:17:21 -0400 Subject: [PATCH] Check if it's already been installed --- lug-helper.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lug-helper.sh b/lug-helper.sh index f807cec..b813350 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1057,6 +1057,12 @@ download_install() { ;; 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 # To add new sources, handle them here and in the # download_select_install function below