silence stdout on prune
This commit is contained in:
parent
4da492181f
commit
1064d1e13f
2
setup.py
2
setup.py
@ -7,7 +7,7 @@ README_MD = open(join(dirname(abspath(__file__)), "README.md")).read()
|
||||
|
||||
setup(
|
||||
name="trueupdate",
|
||||
version="2.1.5",
|
||||
version="2.1.6",
|
||||
|
||||
# The packages that constitute your project.
|
||||
# For my project, I have only one - "pydash".
|
||||
|
@ -112,10 +112,7 @@ def docker_prune():
|
||||
if PRUNE:
|
||||
print("Pruning old docker images...\n")
|
||||
process = subprocess.Popen(["docker", "image", "prune", "-af"], stdout=subprocess.PIPE)
|
||||
while process.poll() is None:
|
||||
lines = process.stdout.readline()
|
||||
print (lines)
|
||||
print (process.stdout.read())
|
||||
print("Images pruned.\n")
|
||||
|
||||
def run():
|
||||
process_args()
|
||||
|
Loading…
Reference in New Issue
Block a user