From 15af48fcf84da0989114cf60dda940ae2ead133a Mon Sep 17 00:00:00 2001 From: Arbaaz Shafiq Date: Wed, 26 Oct 2022 19:30:34 +0530 Subject: [PATCH] dont show command if quiet: true dont print the command if quiet option is set to true and description is None --- dotbot/plugins/shell.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dotbot/plugins/shell.py b/dotbot/plugins/shell.py index bbdcb6d..7092158 100644 --- a/dotbot/plugins/shell.py +++ b/dotbot/plugins/shell.py @@ -42,10 +42,11 @@ class Shell(dotbot.Plugin): else: cmd = item msg = None - if msg is None: + if quiet: + if msg is not None: + self._log.lowinfo("%s" % msg) + elif msg is None: self._log.lowinfo(cmd) - elif quiet: - self._log.lowinfo("%s" % msg) else: self._log.lowinfo("%s [%s]" % (msg, cmd)) stdout = options.get("stdout", stdout)