diff --git a/pkgs/watch-ssh-keys/watch-ssh-keys.fnl b/pkgs/watch-ssh-keys/watch-ssh-keys.fnl index 618a2b9..e123843 100644 --- a/pkgs/watch-ssh-keys/watch-ssh-keys.fnl +++ b/pkgs/watch-ssh-keys/watch-ssh-keys.fnl @@ -52,9 +52,9 @@ (let [{: out-path : watched-service : path } (parse-args arg) dir (.. watched-service "/.outputs") service (assert (svc.open dir))] - (accumulate [tree (service:output path) + (accumulate [tree (or (service:output path) {}) v (service:events)] - (write-changes out-path tree (service:output path))))) + (write-changes out-path tree (or (service:output path) {}))))) { : run }