diff --git a/src/babashka/main.clj b/src/babashka/main.clj index 1c25c94f..7a8c1725 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -634,7 +634,7 @@ Use bb run --help to show this help output. (if-not opt opts-map ;; FILE > TASK > SUBCOMMAND (cond - (fs/regular-file? opt) + (.isFile (io/file opt)) (if (str/ends-with? opt ".jar") (assoc opts-map :jar opt