Skip to content

Commit

Permalink
tolerate zero args
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Dec 5, 2022
1 parent aaec366 commit f277204
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/babashka/process.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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}))
Expand Down

0 comments on commit f277204

Please sign in to comment.