Commit ee937b7a authored by www user for firmware's avatar www user for firmware
Browse files

fix pipeline id comparison

parent 47866878
......@@ -50,12 +50,14 @@ def find_latest_pipeline_id():
return None
if args.pipeline_id is None:
pipeline_id = find_latest_pipeline_id()
pipeline_id = int(find_latest_pipeline_id())
if args.pipeline_id_file:
try:
with open(args.pipeline_id_file, "r") as pipeline_id_file:
if pipeline_id == pipeline_id_file.read():
pipeline_id_from_file = int(pipeline_id_file.read())
if pipeline_id == pipeline_id_from_file:
print("Pipeline up to date")
sys.exit(1)
except FileNotFoundError:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment