Skip to content

[DOCS-5095] running install script to user owned folder asks for sudo pass #1372

@ekovacs

Description

@ekovacs

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:

speakeasy/install.sh

Lines 168 to 170 in c6e38da

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions