mirror of https://github.com/statping/statping
assets
parent
f7fd65c26a
commit
7be3961891
|
@ -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 err != nil {
|
if sassBin == "" {
|
||||||
log.Warnf("could not find sass executable in PATH: ", err)
|
bin, err := exec.LookPath("sass")
|
||||||
return err
|
if err != nil {
|
||||||
}
|
log.Warnf("could not find sass executable in PATH: %s", err)
|
||||||
sassEnv := utils.Params.GetString("SASS")
|
return err
|
||||||
if sassEnv != "" {
|
}
|
||||||
sassBin = sassEnv
|
sassBin = bin
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
|
|
Loading…
Reference in New Issue