Skip to content

Commit

Permalink
refactor(cli.install): rename parameter for no reason
Browse files Browse the repository at this point in the history
  • Loading branch information
loqusion committed May 5, 2024
1 parent 757e5d4 commit 48216fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hyprshade/cli/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ def get_script_path() -> str: # pragma: no cover
return os.path.realpath(sys.argv[0], strict=True)


def write_systemd_user_unit(unit_type: SystemdUnitType, body: str) -> None:
def write_systemd_user_unit(unit_type: SystemdUnitType, text: str) -> None:
dest_dir = user_config_dir("systemd/user")
os.makedirs(dest_dir, exist_ok=True)
path = os.path.join(dest_dir, f"hyprshade.{unit_type}")
with open(path, "w") as f:
f.write(body)
f.write(text)
click.echo(f"Wrote {unit_type} unit to {path}.", err=True)

0 comments on commit 48216fd

Please sign in to comment.