Split up calls into executable and parameterlist
This commit is contained in:
parent
72f0244a7c
commit
2e4ba51a58
@ -7,9 +7,9 @@ class Systemupdate(AbstractModule):
|
||||
|
||||
def run(self):
|
||||
print("Running update")
|
||||
subprocess.call("apt update")
|
||||
subprocess.call("apt upgrade")
|
||||
subprocess.call("apt dist-upgrade")
|
||||
subprocess.call("apt autoremove")
|
||||
subprocess.call("apt autoclean")
|
||||
subprocess.call(["apt", "update"])
|
||||
subprocess.call(["apt", "upgrade"])
|
||||
subprocess.call(["apt", "dist-upgrade"])
|
||||
subprocess.call(["apt", "autoremove"])
|
||||
subprocess.call(["apt", "autoclean"])
|
||||
print("All update processes finished, please check output for further details.")
|
||||
|
Loading…
Reference in New Issue
Block a user