When using lein-exec with a profile, there's an error message at the end of the script. This error doesn't show up if you omit with-profile.
❯ lein with-profile default exec -e '(println "hello")'
Performing task 'exec' with profile(s): 'default'
hello
Error encountered performing task 'exec' with profile(s): 'default'
Suppressed exit
When using
lein-execwith a profile, there's an error message at the end of the script. This error doesn't show up if you omitwith-profile.