mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 16:51:42 +03:00
-jam-all-desks: prevent recursive tempfile cancer
This commit is contained in:
parent
d02d25bfa3
commit
c947f899e6
@ -4,10 +4,17 @@
|
||||
|= [our=ship =desk now=@da]
|
||||
~> %slog.0^leaf/"jamming desk {<desk>}"
|
||||
%- jam
|
||||
%- ?:(=(%base desk) remove-tmp-dir same)
|
||||
%- ankh-to-map
|
||||
=< ank
|
||||
.^(dome:clay %cv /(scot %p our)/[desk]/(scot %da now))
|
||||
::
|
||||
++ remove-tmp-dir
|
||||
|= fiz=(map path page)
|
||||
^- (map path page)
|
||||
%- ~(gas by *(map path page))
|
||||
(skip ~(tap by fiz) |=([p=path *] ?=([%tmp *] p)))
|
||||
::
|
||||
++ ankh-to-map
|
||||
=| res=(map path page)
|
||||
=| pax=path
|
||||
|
Loading…
Reference in New Issue
Block a user