From d03762425aec1aa72f1259207e24b15410d2e60e Mon Sep 17 00:00:00 2001 From: Brooke Kuhlmann Date: Tue, 27 Nov 2018 20:14:41 -0700 Subject: [PATCH] Fixed installation of apps with no extension. Some apps are binaries packaged within a DMG, zip, etc. that have no extension but are executable. These are meant to go in the `/usr/local/bin` folder. This corresponds with the code found in the `installers.sh` file (see the `install_app` function). --- lib/installers.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/installers.sh b/lib/installers.sh index 61cfe35..4de2f0b 100644 --- a/lib/installers.sh +++ b/lib/installers.sh @@ -168,7 +168,7 @@ download_installer() { } export -f download_installer -# Downloads an installer to the $HOME/Downloads folder for manual use. +# 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 @@ -208,6 +208,8 @@ install_app() { printf "Installing: $install_root/$2...\n" case $file_extension in + '') + cp -a "$1/$2" "$install_root";; 'app') cp -a "$1/$2" "$install_root";; 'prefPane')