From 4d9ad7315d5aebe61b878d0a9494042b12171f13 Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Sat, 29 Dec 2018 15:07:49 -0700 Subject: [PATCH] Removed download file function. No longer used or recommended now that the `install_*` functions consistently install applications in the correct location based on application name. --- lib/installers.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/lib/installers.sh b/lib/installers.sh index 2ae1a9a..9d8f3d7 100644 --- a/lib/installers.sh +++ b/lib/installers.sh @@ -186,19 +186,6 @@ download_file() { } export -f download_file -# Downloads installer to $HOME/Downloads folder for manual use. -# Parameters: $1 (required) - URL, $2 (required) - File name. -download_only() { - if [[ -e "$HOME/Downloads/$2" ]]; then - printf "Downloaded: $2.\n" - else - printf "Downloading $1...\n" - download_file "$1" "$2" - mv "$MAC_OS_WORK_PATH/$2" "$HOME/Downloads" - fi -} -export -f download_only - # Installs an application. # Parameters: $1 (required) - Application source path, $2 (required) - Application name. install_app() {