Skip to content

Commit

Permalink
fix: symlink and cleanup prefix
Browse files Browse the repository at this point in the history
the prefix was not added
  • Loading branch information
PhilTaken committed Aug 29, 2023
1 parent c07bcd5 commit 3a00508
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/batou_ext/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ class SymlinkAndCleanup(batou.component.Component):
pattern = None
prefix = None

_current_link = f"{prefix}-current" if prefix else "current"
_last_link = f"{prefix}-last" if prefix else "last"

def configure(self):
self._current_link = f"{prefix}-current" if prefix else "current"
self._last_link = f"{prefix}-last" if prefix else "last"
self.dir = os.path.dirname(self.current)
self.current = os.path.basename(self.current)

Expand Down

0 comments on commit 3a00508

Please sign in to comment.