diff --git a/sci b/sci index 74b6c7cf..0da67e32 160000 --- a/sci +++ b/sci @@ -1 +1 @@ -Subproject commit 74b6c7cfb732b46e04a6c6f9209c41f210f37571 +Subproject commit 0da67e32e2930aa0ea18c9350b8a40fc0b9cb502 diff --git a/src/babashka/main.clj b/src/babashka/main.clj index 97220054..6d8ee62d 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -517,6 +517,7 @@ If neither -e, -f, or --socket-repl are specified, then the first argument that :imports imports :load-fn load-fn :dry-run uberscript + :reload true :readers core/data-readers} opts (addons/future opts) sci-ctx (sci/init opts) @@ -582,7 +583,7 @@ If neither -e, -f, or --socket-repl are specified, then the first argument that uberscript (let [uberscript-out uberscript] (spit uberscript-out "") ;; reset file - (doseq [s @uberscript-sources] + (doseq [s (dedupe @uberscript-sources)] (spit uberscript-out s :append true)) (spit uberscript-out preloads :append true) (spit uberscript-out expression :append true)))