Don't print with-profile output when only one profile is invoked.
This commit is contained in:
parent
989e12ebde
commit
387db01ac5
2 changed files with 3 additions and 2 deletions
0
leiningen-core/src/leiningen/core/project.clj
Executable file → Normal file
0
leiningen-core/src/leiningen/core/project.clj
Executable file → Normal file
|
@ -58,8 +58,9 @@ For a detailed description of profiles, see `lein help profiles`."
|
|||
(let [profile-groups (seq (.split profiles ":"))
|
||||
failures (atom 0)]
|
||||
(doseq [profiles (map (partial profiles-in-group project) profile-groups)]
|
||||
(main/info (format "Performing task '%s' with profile(s): '%s'"
|
||||
task-name (string/join "," (map name profiles))))
|
||||
(when (> (count profile-groups 1))
|
||||
(main/info (format "Performing task '%s' with profile(s): '%s'"
|
||||
task-name (string/join "," (map name profiles)))))
|
||||
(binding [main/*exit-process?* false]
|
||||
(try
|
||||
(with-profiles* project profiles task-name args)
|
||||
|
|
Loading…
Reference in a new issue