Skip to content

Commit

Permalink
Merge pull request #125 from Foldex/installer_patch_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tkashkin authored Mar 21, 2023
2 parents ab219f3 + e2947dc commit b821ac9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ def patch_client_css(source: Path, target: Path, name: str):
print(f"{TEXT_PURPLE}{TEXT_INFO} File {TEXT_BOLD}{target_css}{TEXT_RESET}{TEXT_PURPLE} does not exist{TEXT_RESET}")
return

shutil.copyfile(source / CSS_FILE, custom_css)

with target_css.open() as css_file:
if css_file.readline().strip() == STEAM_PATCHED_HEADER:
return
Expand All @@ -255,8 +257,6 @@ def patch_client_css(source: Path, target: Path, name: str):
padding = "\t" * size_diff
target_css.open('a').write(padding)

shutil.copyfile(source / CSS_FILE, custom_css)

if __name__ == "__main__":
if not skindir.exists():
raise SystemExit(f"{TEXT_RED}{TEXT_CROSS} Skin directory {TEXT_BOLD}{SKIN_DIR}{TEXT_RESET}{TEXT_RED} does not exist. Make sure you're running the installer from its root directory{TEXT_RESET}")
Expand Down

0 comments on commit b821ac9

Please sign in to comment.