diff --git a/opnsense-config/src/config/shell/ssh.rs b/opnsense-config/src/config/shell/ssh.rs index 3c66864..60d3702 100644 --- a/opnsense-config/src/config/shell/ssh.rs +++ b/opnsense-config/src/config/shell/ssh.rs @@ -107,7 +107,7 @@ impl OPNsenseShell for SshOPNSenseShell { match result { Ok(bytes) => { if !bytes.is_empty() { - remote_file.write(&bytes).await?; + AsyncWriteExt::write_all(&mut remote_file, &bytes).await?; } } Err(e) => todo!("Error unhandled {e}"),