Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

aftman self-install fails on zsh environment #44

@OverHash

Description

@OverHash

Following from the discussion on #28:

On Ubuntu 22.04, I also had issues running aftman self-install without sudo. Without running as sudo I get this error:

./aftman self-install
[INFO  aftman::tool_storage] Updating all Aftman binaries...
[INFO  aftman::tool_storage] Updated Aftman binaries successfully!
[ERROR aftman::system_path::unix] Error trying to write /home/overhash/.zshenv: failed to open file `/home/overhash/.zshenv`

What's more interesting is that when I do use sudo ./aftman self-install, it still won't update the zshenv. I had to manually move my .zshenv to a new file and then run aftman self-install (which created a fresh ~/.zshenv) before I merged my old changes in.

Most interestingly, all files are chmod 644. Running aftman self-install again after installing still causes the issue. I'm suspecting there's something funny going on here when actually reading the file.

Running off 652c4df.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions