From 4639a302e0f929342c285a5b7efaaf8431ab24b2 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 11 Mar 2016 20:24:39 +0000 Subject: [PATCH] Simplify the software-install script slightly. --- bin/software-install | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/bin/software-install b/bin/software-install index 6bdf3bd..82ae265 100755 --- a/bin/software-install +++ b/bin/software-install @@ -1,6 +1,6 @@ #!/bin/bash -function install_linux_software { +function install_Linux_software { #------------------------------- # Check the OS and set install command #------------------------------- @@ -29,7 +29,7 @@ function install_linux_software { EOF } -function install_osx_software { +function install_Darwin_software { #------------------------------- # Install Homebrew if missing #------------------------------- @@ -66,15 +66,8 @@ echo "#-------------------------------" echo "# START: $(date)" echo "#-------------------------------" -#------------------------------- -# Check for Mac OS X -#------------------------------- -if [ $(uname -s) == "Darwin" ]; then - install_osx_software -else - install_linux_software -fi -#------------------------------- +# Call the install function appropriate for this platform +install_$(uname -s)_software #------------------------------- # Ensure Vim plugins are up-to-date, if older than one day