Skip to content

Commit

Permalink
fix(build): fixes the build command's release flag to work for direct…
Browse files Browse the repository at this point in the history
…ories without the output dir
  • Loading branch information
JasonYao committed Oct 17, 2022
1 parent 18bb293 commit c14a58a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pydotfiles/v4/builder/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ def __init__(self, configurations: list[Configuration], base_dir: Path, output_p
self.profile_file_types[configuration.file_path] = AlphaDefaultSettings

def build(self, profiles: Optional[list[str]], specified_oses: Optional[list[str]]) -> Dict[str, Path]:
# Clears out the current build directory
shutil_rmtree(self.output_path)
# Clears out the current build directory if it already exists
if self.output_path.exists():
shutil_rmtree(self.output_path)
self.output_path.mkdir(parents=True, exist_ok=True)

active_profiles = self.__get_active_profiles(profiles)
Expand Down

0 comments on commit c14a58a

Please sign in to comment.