Skip to content

Commit

Permalink
Revert "[rust] Run pkg util command with log"
Browse files Browse the repository at this point in the history
This reverts commit 4f74bc2.
  • Loading branch information
bonigarcia authored and diemol committed Mar 26, 2024
1 parent 3a66eb4 commit db8cd24
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions rust/src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@
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,
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,
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,
};
use anyhow::anyhow;
use anyhow::Error;
Expand Down Expand Up @@ -200,7 +199,7 @@ pub fn uncompress_pkg(
&out_folder,
));
log.trace(format!("Running command: {}", command.display()));
run_shell_command_with_log(&log, os, command)?;
run_shell_command_by_os(os, command)?;

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

0 comments on commit db8cd24

Please sign in to comment.