the install script allows for custom $INSTALL_DIR to be specified
https://github.com/speakeasy-api/speakeasy/blob/c6e38dae8def31b26197fc65bbb3d7344df495ae/install.sh#L12C1-L12C12
such install-dir may be owned by the running user and should only ask for sudo PASS only if its required:
|
sudo_cmd='mv '"$tmp_dir/$BINARY_NAME"' '"$INSTALL_DIR"' && chmod a+x '"$INSTALL_DIR/$BINARY_NAME" |
|
sudo -p "sudo password required for installing to $INSTALL_DIR: " -- sh -c "$sudo_cmd" |
|
echo "Installed speakeasy to $INSTALL_DIR" |
DOCS-5095