Use sequential? for identifying if the script output needs splitting (#853)

This commit is contained in:
Andrea Richiardi 2021-05-18 15:07:39 -07:00 committed by GitHub
parent 9f48048472
commit 7e3b1f58d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -804,7 +804,7 @@ Use bb run --help to show this help output.
(:prn cli-opts))) (:prn cli-opts)))
(if-let [pr-f (cond shell-out println (if-let [pr-f (cond shell-out println
edn-out prn)] edn-out prn)]
(if (coll? res) (if (sequential? res)
(doseq [l res (doseq [l res
:while (not (pipe-signal-received?))] :while (not (pipe-signal-received?))]
(pr-f l)) (pr-f l))