Installer PATH output #735
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The installer outputs a prompt suggesting a path add:
https://git.coopcloud.tech/toolshed/abra/src/branch/main/scripts/installer/installer#L92
which (at least for bash) results in:
echo PATH=$PATH:/path/to/installed/abra/bin >> $HOME/.bashrcif a user copies and runs this, this does not lead to the desired outcome (PATH expands into .bashrc and may fail if the path contains spaces or other characters interpreted by the shell)
I think a preferred way to do this would be:
echo "echo 'PATH=\$\{PATH\}:'$p >> $HOME/.bashrc"which after output would read:
echo 'PATH=${PATH}':/path/to/abra/bin >> ~/.bashrcwhich leads to:
however, I'm not sure whether this syntax is sh-compatible and I figured it'd be good if this change would come from someone with more experience, so I though I'd make an issue.
@knoflook any thoughts as our resident installer script expert?
Thanks @namnatulco! Feel free to take a stab at a fix if you want! We can all test it 🙏