zigup
zigup copied to clipboard
zigup fails if `~/.local/bin` does not exist
When running zigup 0.14.0-dev.1710+8ee52f99c, the script fails at this command:
ln -s '/home/<user>/zig/0.14.0-dev.1710+8ee52f99c/files/zig' '/home/<user>/.local/bin/zig'
error: FileNotFound
I fixed the error with mkdir $HOME/.local/bin. Running zigup again, I got a more helpful error:
error: the path link '/home/<user>/.local/bin/zig' is not in PATH
This was fixed with the command: export PATH="$HOME/.local/bin:$PATH"
Should at least the first step be added to the script?