pull/557/head
hunterlong 2020-05-01 19:57:46 -07:00
parent f7fd65c26a
commit 7be3961891
1 changed files with 8 additions and 8 deletions

View File

@ -43,14 +43,14 @@ func scssRendered(name string) string {
// CompileSASS will attempt to compile the SASS files into CSS // CompileSASS will attempt to compile the SASS files into CSS
func CompileSASS(files ...string) error { func CompileSASS(files ...string) error {
sassBin, err := exec.LookPath("sass") sassBin := utils.Params.GetString("SASS")
if sassBin == "" {
bin, err := exec.LookPath("sass")
if err != nil { if err != nil {
log.Warnf("could not find sass executable in PATH: ", err) log.Warnf("could not find sass executable in PATH: %s", err)
return err return err
} }
sassEnv := utils.Params.GetString("SASS") sassBin = bin
if sassEnv != "" {
sassBin = sassEnv
} }
for _, file := range files { for _, file := range files {