small fix part 3

This commit is contained in:
Spitap
2023-10-15 12:31:47 +02:00
committed by Antoine Nguyen
parent e7e5dce778
commit 183bfd2742

View File

@@ -71,7 +71,7 @@ class DEBPackage(Package):
)
target_file = f"/etc/apt/source.list.d/{name}.list"
tee_option = "-a" if file_exists(target_file) else ""
utils.exec_cmd(f'echo "{line}" | sude tee {tee_option} {target_file}')
utils.exec_cmd(f'echo "{line}" | tee {tee_option} {target_file}')
self.index_updated = False
def update(self):