mirror of
https://github.com/the-sane/lug-helper.git
synced 2024-12-29 05:14:22 +00:00
Check if it's already been installed
This commit is contained in:
parent
dc648a8f6f
commit
1b334db7cc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user