Commit 86610c2164e323c1e1da31aeb0d20804043100f4

Thomas de Grivel 2020-04-18T15:05:37

after

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/unix/operations.lisp b/unix/operations.lisp
index 2257313..7630fcf 100644
--- a/unix/operations.lisp
+++ b/unix/operations.lisp
@@ -136,6 +136,8 @@
   (sync (parent-directory res))
   (let ((id (resource-id res)))
     (run "echo -n " (sh-quote content) " > " (sh-quote id))
+    (when-let (after (get-specified res :after))
+      (funcall (the function after) res os))
     (clear-probed res)))
 
 ;;  Directory