mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-11-22 23:30:42 +03:00
make --fix work again
This commit is contained in:
parent
02babcedb5
commit
7fdbcf55fb
@ -140,7 +140,11 @@ if __name__ == "__main__":
|
||||
out.append(content)
|
||||
|
||||
if args.fix:
|
||||
subprocess.run([args.patch_bin, "-p0"], check=True, input=b"\n".join(out))
|
||||
subprocess.run(
|
||||
[args.patch_bin, "-p0"],
|
||||
check=True,
|
||||
input=b"\n".join(bytes(file) for file in out.files),
|
||||
)
|
||||
|
||||
if not args.fix and out.files:
|
||||
print(f"{len(out.files)} file(s) need fixes! Re-run me with `--fix` or `--review-github-pr` to fix these.")
|
||||
|
Loading…
Reference in New Issue
Block a user