refactor(remoteProcess): remove command log comments for file transfers to simplify code
This commit is contained in:
parent
54a55be8e5
commit
3255f42385
1 changed files with 0 additions and 6 deletions
|
|
@ -40,9 +40,6 @@ function remote_process(
|
||||||
|
|
||||||
// Execute file transfer immediately
|
// Execute file transfer immediately
|
||||||
transfer_file_to_server($content, $destination, $server, ! $ignore_errors);
|
transfer_file_to_server($content, $destination, $server, ! $ignore_errors);
|
||||||
|
|
||||||
// Add a comment to the command log for visibility
|
|
||||||
$processed_commands[] = "# File transferred via SCP: $destination";
|
|
||||||
} else {
|
} else {
|
||||||
// Regular string command
|
// Regular string command
|
||||||
$processed_commands[] = $cmd;
|
$processed_commands[] = $cmd;
|
||||||
|
|
@ -211,9 +208,6 @@ function instant_remote_process(Collection|array $command, Server $server, bool
|
||||||
|
|
||||||
// Execute file transfer immediately
|
// Execute file transfer immediately
|
||||||
transfer_file_to_server($content, $destination, $server, $throwError);
|
transfer_file_to_server($content, $destination, $server, $throwError);
|
||||||
|
|
||||||
// Add a comment to the command log for visibility
|
|
||||||
$processed_commands[] = "# File transferred via SCP: $destination";
|
|
||||||
} else {
|
} else {
|
||||||
// Regular string command
|
// Regular string command
|
||||||
$processed_commands[] = $cmd;
|
$processed_commands[] = $cmd;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue