mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-17 20:54:38 +03:00
Hide email and password in message showing the command ran by the official installer
This commit is contained in:
@@ -371,9 +371,14 @@ class CommercialInstaller:
|
||||
install_cmd = self.package_manager.get_install_command(self.modules, temp_dir)
|
||||
cmd = [*base_cmd, *install_cmd]
|
||||
|
||||
self.logger.info(f"Running: {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
|
||||
|
||||
Reference in New Issue
Block a user