Skip to content

Commit

Permalink
fix:fix replace bash bug
Browse files Browse the repository at this point in the history
Signed-off-by: grapebaba <[email protected]>
  • Loading branch information
GrapeBaBa authored and norswap committed Aug 22, 2023
1 parent 780457e commit 8ff4e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libroll.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def replace_in_file(file_path: str, replacements: dict):
filedata = file.read()

for key, value in replacements.items():
filedata.replace(key, value)
filedata = filedata.replace(key, value)

with open(file_path, "w") as file:
file.write(filedata)
Expand Down

0 comments on commit 8ff4e12

Please sign in to comment.