Open DarkLii opened 4 months ago
@classmethod def sudo_run_cmd(cls, command, interrupt=True, timeout=25, out_debug_flag=True, command_log=True, password=None): if password is None: password = conf.PASSWORD cls.run_cmd( f"echo '{password}' | sudo -S {command}", interrupt=interrupt, timeout=timeout, out_debug_flag=out_debug_flag, command_log=command_log )
没有return,是个Bug,下个版本修复😍