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).
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user