From 4084caaa3070c2503ec337d4110dcd522b437fe3 Mon Sep 17 00:00:00 2001 From: Austin King <shout@ozten.com> Date: Wed, 1 Feb 2012 09:22:07 -0800 Subject: [PATCH] Fixing UGLIFYCSS check and directory creation bug --- scripts/compress.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/compress.sh b/scripts/compress.sh index aca48a179..4db1f0a11 100755 --- a/scripts/compress.sh +++ b/scripts/compress.sh @@ -16,7 +16,7 @@ if [ ! -x "$UGLIFY" ]; then fi UGLIFYCSS=`which uglifycss 2> /dev/null` -if [ ! -x "$UGLIFY" ]; then +if [ ! -x "$UGLIFYCSS" ]; then echo "uglifycss not found in your path. Have you npm installed lately?" exit 1 fi @@ -62,6 +62,7 @@ echo "generating for the following locales:" echo $locales for locale in $locales; do + mkdir -p $BUILD_PATH/$locale mkdir -p $BUILD_PATH/../i18n/$locale # Touch as the trigger locale doesn't really exist touch $BUILD_PATH/../i18n/${locale}/client.json @@ -92,7 +93,7 @@ echo '' cd $PRODUCTION_PATH -pwd +pwd # minify the JS $UGLIFY < $BUILD_PATH/include.uncompressed.js > include.js for locale in $locales; do @@ -106,4 +107,3 @@ $UGLIFY < $BUILD_PATH/communication_iframe.uncompressed.js > communication_ifram # minify the CSS $UGLIFYCSS $BUILD_PATH/browserid.uncompressed.css > browserid.css $UGLIFYCSS $BUILD_PATH/dialog.uncompressed.css > dialog.css - -- GitLab