From ece0111982a84b0875c5a06b1dadf659fa278e18 Mon Sep 17 00:00:00 2001 From: ShaggyYeti Date: Tue, 24 Jun 2014 14:11:54 +0300 Subject: [PATCH] Fix for properly work in windows --- src/main/scala/sass/SassCompiler.scala | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/scala/sass/SassCompiler.scala b/src/main/scala/sass/SassCompiler.scala index 2a6b2f6..f0f7ba7 100644 --- a/src/main/scala/sass/SassCompiler.scala +++ b/src/main/scala/sass/SassCompiler.scala @@ -20,12 +20,11 @@ object SassCompiler { val parentPath = sassFile.getParentFile.getAbsolutePath val (cssOutput, dependencies) = runCompiler( - Seq(sassCommand, "-l", "-I", parentPath) ++ options ++ Seq(sassFile.getAbsolutePath) + sassCommand ++ Seq("-l", "-I", parentPath) ++ options ++ Seq(sassFile.getAbsolutePath) ) - val (compressedCssOutput, ignored) = runCompiler( - Seq(sassCommand, "-t", "compressed", "-I", parentPath) ++ options ++ Seq(sassFile.getAbsolutePath) + sassCommand ++ Seq("-t", "compressed", "-I", parentPath) ++ options ++ Seq(sassFile.getAbsolutePath) ) (cssOutput, compressedCssOutput) @@ -38,7 +37,7 @@ object SassCompiler { } - private def sassCommand = if (isWindows) "sass.bat" else "sass" + private def sassCommand = if (isWindows) Seq("cmd","/c","sass.bat") else Seq("sass") private val isWindows = System.getProperty("os.name").toLowerCase().indexOf("win") >= 0