i wonder if chmod permissions are retained after resetting a branch.

This commit is contained in:
Ghommie
2019-11-27 22:43:15 +01:00
parent 8cec8fa506
commit eef3ec090d
19 changed files with 197 additions and 223 deletions
+10 -9
View File
@@ -4,16 +4,17 @@ import json
if len(sys.argv) <= 1:
exit(1)
files = filter(len, sys.argv[1].split('\n'))
msg = []
for file in files:
status = 0
for file in sys.argv[1:]:
with open(file, encoding="ISO-8859-1") as f:
try:
json.load(f)
except ValueError as exception:
msg.append("JSON synxtax error on file: {}".format(file))
msg.append(str(exception))
if msg:
print("\n".join(msg))
exit(1)
exit(0)
print("JSON error in {}".format(file))
print(exception)
status = 1
else:
print("Valid {}".format(file))
exit(status)