summaryrefslogtreecommitdiff
path: root/mbld/install.myr
diff options
context:
space:
mode:
Diffstat (limited to 'mbld/install.myr')
-rw-r--r--mbld/install.myr9
1 files changed, 5 insertions, 4 deletions
diff --git a/mbld/install.myr b/mbld/install.myr
index c5917e5..b5592af 100644
--- a/mbld/install.myr
+++ b/mbld/install.myr
@@ -41,12 +41,13 @@ const movetargs = {b, rm
;;
| `Data dt:
for blob in dt.blobs
- if dt.base.len == 0
- pfx = config.Sharepath
+ if dt.path.len == 0
+ pfx = std.pathcat(config.Sharepath, dt.name)
+ movefile(b, rm, dt.dir, blob, pfx, 0o644)
+ std.slfree(pfx)
else
- pfx = dt.base
+ movefile(b, rm, dt.dir, blob, dt.path, 0o644)
;;
- movefile(b, rm, dt.dir, blob, pfx, 0o644)
;;
| `Gen gt:
/* nothing to do */