in compile-sass-file!, sh doesn't like nil arg when no compass

This commit is contained in:
Ben Swift 2016-12-02 14:30:11 +11:00
parent fc1d1d725c
commit a66f8df5e4

View file

@ -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