Skip to content
Snippets Groups Projects
Commit ba923f9a authored by Yohan Jarosz's avatar Yohan Jarosz
Browse files

check version

parent 09b7fd3d
No related branches found
No related tags found
No related merge requests found
......@@ -122,7 +122,7 @@ def is_imp_installed(name, version):
"""
try:
imp_image = subprocess.Popen(['docker', 'images', name], stdout=subprocess.PIPE)
is_installed = subprocess.check_output(['grep', version], stdin=imp_image.stdout)
is_installed = subprocess.check_output(['grep', " %s " % version], stdin=imp_image.stdout)
except subprocess.CalledProcessError:
return False
print("[x] Found IMP {n} {v}".format(n=name, v=version))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment