bugfix for compass-installed?
catch the (previously uncaught) exception when there isn't a `compass` binary on the `$PATH`, return `false` instead
This commit is contained in:
parent
a4ab7f1409
commit
fc1d1d725c
1 changed files with 6 additions and 3 deletions
|
@ -17,7 +17,10 @@
|
||||||
(defn compass-installed?
|
(defn compass-installed?
|
||||||
"Checks for the installation of Compass."
|
"Checks for the installation of Compass."
|
||||||
[]
|
[]
|
||||||
(= 0 (:exit (sh "compass" "--version"))))
|
(try
|
||||||
|
(= 0 (:exit (sh "compass" "--version")))
|
||||||
|
(catch java.io.IOException _
|
||||||
|
false)))
|
||||||
|
|
||||||
(defn find-sass-files
|
(defn find-sass-files
|
||||||
"Given a Diretory, gets files, Filtered to those having scss or sass
|
"Given a Diretory, gets files, Filtered to those having scss or sass
|
||||||
|
|
Loading…
Reference in a new issue