From a66f8df5e41885cce995f567afe8fdaa5994511b Mon Sep 17 00:00:00 2001 From: Ben Swift Date: Fri, 2 Dec 2016 14:30:11 +1100 Subject: [PATCH] in compile-sass-file!, sh doesn't like nil arg when no compass --- src/cryogen_core/sass.clj | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cryogen_core/sass.clj b/src/cryogen_core/sass.clj index 4ddb7cd..798f796 100644 --- a/src/cryogen_core/sass.clj +++ b/src/cryogen_core/sass.clj @@ -40,10 +40,9 @@ dest-sass base-dir]}] (shell/with-sh-dir base-dir - (sh "sass" - "--update" - (when (compass-installed?) "--compass") - (str src-sass ":" dest-sass)))) + (if (compass-installed?) + (sh "sass" "--compass" "--update" (str src-sass ":" dest-sass)) + (sh "sass" "--update" (str src-sass ":" dest-sass))))) (defn compile-sass->css! "Given a directory src-sass, looks for all sass files and compiles them into