feat: add PrintCommand support to all task executors
This commit is contained in:
4 files changed
+11
-4
No files matched your search
@@ -219,7 +219,7 @@ func (task SftpCopyTask) Execute(ctx context.Context) (SftpCopyResult, error) {
|
||||
}, ctx.Err()
|
||||
}
|
||||
|
||||
if task.PrintCommand {
|
||||
if task.PrintCommand || os.Getenv("DOKKU_TRACE") == "1" {
|
||||
LogDebug(fmt.Sprintf("ssh %s@%s cp %s %v", task.Username, task.Hostname, task.SourcePath, task.DestinationPath))
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user