From 8c1bb0cab2b0ab7b93febbd9e7c7075ddf41ffb9 Mon Sep 17 00:00:00 2001 From: John Jarvis Date: Wed, 1 Aug 2012 10:54:32 -0400 Subject: [PATCH] sanity checking /usr/local, updating coffee script install location, old location no longer works --- create-dev-env.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/create-dev-env.sh b/create-dev-env.sh index 7ebff77fb2..d0d5c30faa 100755 --- a/create-dev-env.sh +++ b/create-dev-env.sh @@ -203,6 +203,24 @@ case `uname -s` in esac ;; Darwin) + + if [[ ! -w /usr/local ]]; then + cat</dev/null || { output "Installing brew" /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)" @@ -238,7 +256,7 @@ case `uname -s` in command -v coffee &>/dev/null || { output "Installing coffee script" - curl http://npmjs.org/install.sh | sh + curl --insecure https://npmjs.org/install.sh | sh npm install -g coffee-script } ;;