Skip to content

Commit

Permalink
πŸ› Fix issue where patch start numbers were incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
kierandrewett committed Nov 17, 2023
1 parent 4f3fe9a commit 035b6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/patchtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def declare_patch_error():

if code == 0:
try:
next_patch_num = len([x for x in os.listdir(patches_dir) if x.endswith(".patch")][-1].split("-")[0]) + 1
next_patch_num = len([x for x in os.listdir("./patches/") if x.endswith(".patch")]) + 1

patch_code = subprocess.run([
"git",
Expand Down

0 comments on commit 035b6a3

Please sign in to comment.