mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-31 07:12:49 -04:00
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:
parent
98adf2fe4f
commit
a6567de187
1 changed files with 12 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue