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:
Brooke Kuhlmann
2018-11-27 20:14:41 -07:00
parent 2d58c953e1
commit d03762425a

View File

@@ -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')