mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-13 20:01:48 +01:00
Fixed tee command
This commit is contained in:
parent
00feaf050c
commit
573715ae86
1 changed files with 2 additions and 2 deletions
|
@ -151,9 +151,9 @@ class Utilities(Configs):
|
|||
output = tee = ''
|
||||
if filename and self.process_log:
|
||||
self.header_process_log(filename)
|
||||
tee: str = f'| tee -a {self.slpkg_log_path}/{filename}_{self.process_log_date}_{self.process_log_time}.log'
|
||||
tee: str = f' | tee -a {self.slpkg_log_path}/{filename}_{self.process_log_date}_{self.process_log_time}.log'
|
||||
try:
|
||||
output = subprocess.run(f'{command} {tee}', shell=True, stderr=stderr, stdout=stdout)
|
||||
output = subprocess.run(f'{command}{tee}', shell=True, stderr=stderr, stdout=stdout)
|
||||
except subprocess.CalledProcessError as error:
|
||||
logger = logging.getLogger(LoggingConfig.date_time)
|
||||
logger.exception(f'{self.__class__.__name__}'
|
||||
|
|
Loading…
Reference in a new issue