diff --git a/src/babashka/main.clj b/src/babashka/main.clj index 78b13121..4d570197 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -604,7 +604,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 (dedupe @uberscript-sources)] + (doseq [s (distinct @uberscript-sources)] (spit uberscript-out s :append true)) (spit uberscript-out preloads :append true) (spit uberscript-out expression :append true))) diff --git a/test/babashka/classpath_test.clj b/test/babashka/classpath_test.clj index 618f2d8d..e08d25e6 100644 --- a/test/babashka/classpath_test.clj +++ b/test/babashka/classpath_test.clj @@ -42,7 +42,6 @@ (tu/bb nil "--file" (.getPath tmp-file) "1" "2" "3" "4"))) (testing "order of namespaces is correct" (tu/bb nil "--classpath" "test-resources/babashka/uberscript/src" "-m" "my.main" "--uberscript" (.getPath tmp-file)) - (prn (slurp (.getPath tmp-file))) (is (= "(\"1\" \"2\" \"3\" \"4\")\n" (tu/bb nil "--file" (.getPath tmp-file) "1" "2" "3" "4"))))))