tuned;
authorwenzelm
Thu, 10 Apr 2025 13:43:37 +0200
changeset 82474 fcefbef691bf
parent 82473 a69f5be8a33f
child 82475 0a6d57c4d58b
tuned;
src/Pure/Admin/component_polyml.scala
--- a/src/Pure/Admin/component_polyml.scala	Thu Apr 10 13:25:01 2025 +0200
+++ b/src/Pure/Admin/component_polyml.scala	Thu Apr 10 13:43:37 2025 +0200
@@ -118,14 +118,14 @@
     /* sha1 library */
 
     val sha1_files =
-      if (sha1_root.isDefined) {
-        val dir1 = sha1_root.get
-        platform_context.execute(dir1, "./build " + platform_context.sha1)
-
-        val dir2 = dir1 + Path.explode(platform_context.sha1)
-        File.read_dir(dir2).map(entry => dir2 + Path.basic(entry))
+      sha1_root match {
+        case Some(dir) =>
+          val platform_path = Path.explode(platform_context.sha1)
+          val platform_dir = dir + platform_path
+          platform_context.execute(dir, "./build " + File.bash_path(platform_path))
+          File.read_dir(platform_dir).map(entry => platform_dir + Path.basic(entry))
+        case None => Nil
       }
-      else Nil
 
 
     /* install */