diff options
-rw-r--r-- | plugins/tedge_apt_plugin/src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/tedge_apt_plugin/src/main.rs b/plugins/tedge_apt_plugin/src/main.rs index ed221d39..f848b609 100644 --- a/plugins/tedge_apt_plugin/src/main.rs +++ b/plugins/tedge_apt_plugin/src/main.rs @@ -73,7 +73,7 @@ fn run(operation: PluginOp) -> Result<ExitStatus, InternalError> { // apt output = openssl/focal-security,now 1.1.1f-1ubuntu2.3 amd64 [installed] // awk -F '[/ ]' = $1 ^ $2 ^ $3 ^ $4 // awk print = name ^ ^ version ^ - let status = Command::new("awk") + Command::new("awk") .args(vec![ "-F", "[/ ]", @@ -81,9 +81,7 @@ fn run(operation: PluginOp) -> Result<ExitStatus, InternalError> { ]) .stdin(apt.stdout.unwrap()) // Cannot panic: apt.stdout has been set .status() - .map_err(|err| InternalError::exec_error("awk", err))?; - - status + .map_err(|err| InternalError::exec_error("awk", err))? } PluginOp::Install { |