File tree 1 file changed +7
-8
lines changed
suite/auto-sync/src/autosync
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def get_changed_files(base_ref: str, cmp_ref: str) -> list[dict]:
27
27
)
28
28
if result .stderr :
29
29
log .fatal (f"git diff failed with: { result .stderr } " )
30
- exit (1 )
30
+ exit (- 1 )
31
31
32
32
if not result .stdout :
33
33
# Nothing changed
@@ -99,13 +99,12 @@ def main():
99
99
force = True ,
100
100
)
101
101
changed_files = get_changed_files (args .base_ref , args .cmp_ref )
102
- print (changed_files )
103
- if not compare_files (changed_files ):
104
- log .error ("Some files were not correctly generated." )
105
- exit (1 )
106
- log .error ("Files were correctly generated." )
107
- log .error ("\n \n If you did not change anything: please notify us.\n \n " )
108
- exit (0 )
102
+ if compare_files (changed_files ):
103
+ log .info ("Files were correctly generated." )
104
+ exit (0 )
105
+ log .error ("Some files were not correctly generated." )
106
+ log .error ("If you did not change anything: please notify us." )
107
+ exit (- 1 )
109
108
110
109
111
110
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments