Skip to content

Commit

Permalink
Fix rl touch
Browse files Browse the repository at this point in the history
  • Loading branch information
ProbablyFaiz committed Dec 6, 2024
1 parent 6132c7c commit 8a81168
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rl/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ def _get_all_jobs(partition: str | None = None, show_progress=False):


def _touch_file(path: Path):
with path.open("ab") as f:
f.write(b" ")
subprocess.run(["truncate", "-s", "+1", str(path)])
subprocess.run(["truncate", "-s", "-1", str(path)])


Expand Down

0 comments on commit 8a81168

Please sign in to comment.