Simplify the software-install script slightly.

This commit is contained in:
Scott Wallace 2016-03-11 20:24:39 +00:00
parent ebf1369759
commit 4639a302e0

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
function install_linux_software { function install_Linux_software {
#------------------------------- #-------------------------------
# Check the OS and set install command # Check the OS and set install command
#------------------------------- #-------------------------------
@ -29,7 +29,7 @@ function install_linux_software {
EOF EOF
} }
function install_osx_software { function install_Darwin_software {
#------------------------------- #-------------------------------
# Install Homebrew if missing # Install Homebrew if missing
#------------------------------- #-------------------------------
@ -66,15 +66,8 @@ echo "#-------------------------------"
echo "# START: $(date)" echo "# START: $(date)"
echo "#-------------------------------" echo "#-------------------------------"
#------------------------------- # Call the install function appropriate for this platform
# Check for Mac OS X install_$(uname -s)_software
#-------------------------------
if [ $(uname -s) == "Darwin" ]; then
install_osx_software
else
install_linux_software
fi
#-------------------------------
#------------------------------- #-------------------------------
# Ensure Vim plugins are up-to-date, if older than one day # Ensure Vim plugins are up-to-date, if older than one day