Print the running log before executing it

This commit is contained in:
Alexandre 'Kidev' Poumaroux
2025-03-19 05:00:26 +01:00
parent 75e08f10a2
commit 60a1bfce2b

View File

@@ -371,14 +371,14 @@ class CommercialInstaller:
install_cmd = self.package_manager.get_install_command(self.modules, temp_dir)
cmd = [*base_cmd, *install_cmd]
log_cmd = cmd.copy()
for i in range(len(log_cmd) - 1):
if log_cmd[i] == "--email" or log_cmd[i] == "--pw":
log_cmd[i + 1] = "***"
self.logger.info(f"Running: {log_cmd}")
safely_run(cmd, Settings.qt_installer_timeout)
for i in range(len(cmd) - 1):
if cmd[i] == "--email" or cmd[i] == "--pw":
cmd[i + 1] = "***"
self.logger.info(f"Running: {cmd}")
except Exception as e:
self.logger.error(f"Installation failed: {str(e)}")
raise