Skip to content

Commit

Permalink
[rust] Run pkg util command with log
Browse files Browse the repository at this point in the history
  • Loading branch information
bonigarcia committed Mar 26, 2024
1 parent a3ba2c1 commit 4f74bc2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rust/src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@
use crate::config::OS;
use crate::config::OS::WINDOWS;
use crate::{
format_one_arg, format_three_args, format_two_args, run_shell_command_by_os, Command, Logger,
CP_VOLUME_COMMAND, HDIUTIL_ATTACH_COMMAND, HDIUTIL_DETACH_COMMAND, MACOS,
MSIEXEC_INSTALL_COMMAND, MV_PAYLOAD_COMMAND, MV_PAYLOAD_OLD_VERSIONS_COMMAND, PKGUTIL_COMMAND,
format_one_arg, format_three_args, format_two_args, run_shell_command_by_os,
run_shell_command_with_log, Command, Logger, CP_VOLUME_COMMAND, HDIUTIL_ATTACH_COMMAND,
HDIUTIL_DETACH_COMMAND, MACOS, MSIEXEC_INSTALL_COMMAND, MV_PAYLOAD_COMMAND,
MV_PAYLOAD_OLD_VERSIONS_COMMAND, PKGUTIL_COMMAND,
};
use anyhow::anyhow;
use anyhow::Error;
Expand Down Expand Up @@ -199,7 +200,7 @@ pub fn uncompress_pkg(
&out_folder,
));
log.trace(format!("Running command: {}", command.display()));
run_shell_command_by_os(os, command)?;
run_shell_command_with_log(&log, os, command)?;

fs::create_dir_all(target)?;
let target_folder = path_to_string(target);
Expand Down

0 comments on commit 4f74bc2

Please sign in to comment.