diff --git a/docker_update.py b/docker_update.py index c89d33f..aa162dc 100644 --- a/docker_update.py +++ b/docker_update.py @@ -1,6 +1,8 @@ import os import sys +from numpy import full + if len(sys.argv) != 3: print("Invalid number of arguments\n") exit(1) @@ -15,7 +17,8 @@ with open(spec_file,"r") as f: for line in lines: s = line.strip() fullpath = os.path.join(path, s) - if os.path.isdir(fullpath) and "docker-compose.yml" in os.listdir(fullpath): + if os.path.isdir(fullpath) and ("docker-compose.yml" in os.listdir(fullpath)): + fullpath = os.path.join(fullpath, "docker-compose.yml") print("========= Processing " + fullpath + " =========") os.system("docker-compose -f " + fullpath + " pull") os.system("docker-compose -f " + fullpath + " up -d")