aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpipeline_backup.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pipeline_backup.py b/pipeline_backup.py
index b32260f..e1f5e2e 100755
--- a/pipeline_backup.py
+++ b/pipeline_backup.py
@@ -32,10 +32,10 @@ class PipelineSpec:
def verify(self):
with open(self.filename, 'r') as fp:
- if '@EXPLICIT' not in fp.readlines():
- return False
-
- return True
+ for line in fp:
+ if line.startswith('@EXPLICIT'):
+ return True
+ return False
def _read(self):
if not self.verify():