mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-31 13:45:09 +00:00
Build: Fix shell script run under Windows OS; small refactoring to remove the getOrElse hack
This commit is contained in:
parent
92079fe2e0
commit
ee34bc76ed
@ -24,8 +24,8 @@ object Cmd {
|
||||
|
||||
def exec(cmd: Seq[String], wd: Option[File]): Result = {
|
||||
val command =
|
||||
sys.props.get("os.name").getOrElse("").toLowerCase match {
|
||||
case win if win.startsWith("windows") => Seq ("cmd", "/C") ++ cmd
|
||||
sys.props.get("os.name") match {
|
||||
case Some(name) if name.toLowerCase.startsWith("windows") => Seq ("cmd", "/C") ++ cmd
|
||||
case _ => cmd
|
||||
}
|
||||
val capt = new Capture
|
||||
|
Loading…
x
Reference in New Issue
Block a user