mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-15 21:30:36 +00:00
Compare commits
2 Commits
7426d0ffb3
...
1b334db7cc
Author | SHA1 | Date | |
---|---|---|---|
|
1b334db7cc | ||
|
dc648a8f6f |
@ -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
|
||||
@ -1176,6 +1182,7 @@ download_install() {
|
||||
# Cleanup tmp download
|
||||
debug_print continue "Cleaning up $tmp_dir/$download_file..."
|
||||
rm "$tmp_dir/$download_file"
|
||||
rm -r "$tmp_dir/$download_name"
|
||||
}
|
||||
|
||||
# List available items for download
|
||||
|
Loading…
x
Reference in New Issue
Block a user