Skip to content

Commit

Permalink
Fixed native unzip in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Oct 27, 2024
1 parent 88cd460 commit cdbf1b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/jvm/src/main/scala/org/sireum/Os_Ext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,9 @@ object Os_Ext {
case Some(p) =>
val t = Os.path(target)
t.mkdirAll()
Os.proc(ISZ[String]("bash", "-c", s"${p.name} x -aoa \"$path\"")).
Os.proc(
if (Os.isWin) ISZ[String]("cmd", "/C", p.name, "x", "-aoa", path)
else ISZ[String]("bash", "-c", s"${p.name} x -aoa \"$path\"")).
env(ISZ("PATH" ~> s"${p.up.canon}${Os.pathSep}${Os.env("PATH")}")).at(t).runCheck()
return
case _ =>
Expand Down

0 comments on commit cdbf1b7

Please sign in to comment.