Fix Python Download

bootstrap.sh was using the "open" command to open a link. While this may work on a Mac, the command does not exist on Linux. Instead we can now use a switch to use the correct command for the users OS.

Ohh and python.org/getit is a 404 -> Changed it to python.org/download
This commit is contained in:
Rowan Decker 2014-03-29 18:23:58 -05:00
parent 98adf2fe4f
commit a6567de187

View file

@ -11,12 +11,23 @@ function checkDependencies { #usage: checkDependencies [name of dependency array
done
}
function openUrl {
case "$OSTYPE" in
darwin*)
open $@;;
linux*)
xdg-open $@;;
*)
echo "$@";;
esac
}
function basicDependenciesErrorHandling {
case "$1" in
"python")
echo "Python isn't installed. Please install it to continue."
read -p "Press enter to open download link..."
open http://www.python.org/getit/
openUrl http://www.python.org/download/
exit 1
;;
"git")