From 403b026bf616934b9784bf078269dd024a718893 Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Fri, 19 Aug 2011 09:48:08 -0700 Subject: [PATCH] displays error when coffee-script is not installed --- script/compile.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/compile.sh b/script/compile.sh index f4bc20dfa..29c35e4ac 100755 --- a/script/compile.sh +++ b/script/compile.sh @@ -1,4 +1,6 @@ #!/bin/sh +hash coffee 2>&- || { echo >&2 "error: Coffee is required but it's not installed (http://jashkenas.github.com/coffee-script/)."; exit 1; } + PATH="$PATH:/usr/local/bin/" coffee -o "$BUILT_PRODUCTS_DIR/$CONTENTS_FOLDER_PATH/Resources/" HTML/*.coffee