Skip to content

Commit

Permalink
Fixes issue #269 by removing an erroneous "if sbyfile" check.
Browse files Browse the repository at this point in the history
This commit removes an erroneous "if sbyfile" that would turn '-f' into a no-op
for stdin input files. Presumably this check was originally intended to handle
the case of stdin input file and no specified workdir (which uses a temporary
workdir). In the current version the check is redundant for this particular
case. The check is erroneous in the case of stdin input file and a specified
workdir, so we simply remove the check.
  • Loading branch information
aiju committed Apr 2, 2024
1 parent e30a0fe commit da46e19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sbysrc/sby.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,7 @@ def start_task(taskloop, taskname):

if opt_force and not reusedir:
early_log(my_workdir, f"Removing directory '{os.path.abspath(my_workdir)}'.")
if sbyfile:
shutil.rmtree(my_workdir, ignore_errors=True)
shutil.rmtree(my_workdir, ignore_errors=True)

if reusedir:
pass
Expand Down

0 comments on commit da46e19

Please sign in to comment.