summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-14 17:29:51 +0200
committerewy <ewy0@protonmail.com>2026-04-14 17:29:51 +0200
commitda2a1f0de3f2cf2705b9ec205b8effecff7787af (patch)
tree890fe95d2ac4b99ebcc4d889c1974e035ec4ca94 /run
parentbf5a1f083bd0db957f2399ec36e641112dce699e (diff)
only show cmdline if it's a dry run
Diffstat (limited to 'run')
-rw-r--r--run/run.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/run/run.go b/run/run.go
index 578e552..42720f2 100644
--- a/run/run.go
+++ b/run/run.go
@@ -91,9 +91,8 @@ func Exec(source *model.Source, target model.Target, args ...string) error {
cmd.Stderr = os.Stderr
cmd.Args = append(cmd.Args, args...)
- _, _ = fmt.Fprintln(os.Stderr, menu.InlineCmd(cmd))
-
if *flags.Dry {
+ _, _ = fmt.Fprintln(os.Stderr, menu.InlineCmd(cmd))
return nil
}