Problem
When /usr/local/bin is not writable, the install script prompts for sudo mid-pipe, which is jarring when running via:
curl -fsSL https://jitsudo.dev/install.sh | sh
The script already falls through to $HOME/.local/bin if sudo fails, but the user has to either enter their password or interrupt the script to get there.
Proposed solution
- Skip the sudo attempt by default and go straight to
$HOME/.local/bin when the preferred install dir is not writable
- Alternatively, add a
--sudo opt-in flag for users who explicitly want system-wide installation
The existing INSTALL_PREFIX workaround (INSTALL_PREFIX=$HOME curl ... | sh) handles this for now, but it's not discoverable.
Problem
When
/usr/local/binis not writable, the install script prompts forsudomid-pipe, which is jarring when running via:curl -fsSL https://jitsudo.dev/install.sh | shThe script already falls through to
$HOME/.local/binif sudo fails, but the user has to either enter their password or interrupt the script to get there.Proposed solution
$HOME/.local/binwhen the preferred install dir is not writable--sudoopt-in flag for users who explicitly want system-wide installationThe existing
INSTALL_PREFIXworkaround (INSTALL_PREFIX=$HOME curl ... | sh) handles this for now, but it's not discoverable.