From f277204a46e0c09440968b6ee88b641bf0c1e58e Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Mon, 5 Dec 2022 15:13:42 +0100 Subject: [PATCH] tolerate zero args --- src/babashka/process.cljc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/babashka/process.cljc b/src/babashka/process.cljc index 6b04cde..6df26fc 100644 --- a/src/babashka/process.cljc +++ b/src/babashka/process.cljc @@ -301,7 +301,10 @@ fst (first args) rst (rest args)] (vec (into (if (fs/exists? fst) - [fst] (tokenize fst)) rst)))] + [fst] + (if fst + (tokenize fst) + fst)) rst)))] {:prev prev :cmd args :opts opts}))