From 6e2c0848f9d06be48e6d132b3dc8cf1b9a59c75d Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Fri, 1 Apr 2022 19:34:44 +0200 Subject: [PATCH] Exit after a build (unless watching) --- src/bruno/core.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bruno/core.clj b/src/bruno/core.clj index 8a5627d..c80bfa7 100644 --- a/src/bruno/core.clj +++ b/src/bruno/core.clj @@ -348,5 +348,7 @@ (alter-var-root #'*src-directory* (constantly src-dir)) (alter-var-root #'*target-directory* (constantly target-dir)) (if (argcmd "watch" args) - (watch!) - (build!)))) + (do (build!) + (watch!)) + (do (build!) + (System/exit 0)))))