Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aftman self-install fails on zsh environment #44

Closed
OverHash opened this issue Apr 8, 2023 · 1 comment · Fixed by #45
Closed

aftman self-install fails on zsh environment #44

OverHash opened this issue Apr 8, 2023 · 1 comment · Fixed by #45

Comments

@OverHash
Copy link

OverHash commented Apr 8, 2023

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.

@LastTalon
Copy link
Contributor

I encountered this helping someone as well I believe. I think I found the fix for it already and completely forgot. I'll see about opening a pull request for it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants