Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sudo usage on distros with newer sudo versions #386

Merged
merged 1 commit into from
May 18, 2022
Merged

Fix sudo usage on distros with newer sudo versions #386

merged 1 commit into from
May 18, 2022

Conversation

kke
Copy link
Contributor

@kke kke commented May 18, 2022

Sudo usage was broken on some distros. Something like sudo -s -- DEBIAN_FRONTEND=noninteractive apt-get install curl would fail with: /bin/bash: DEBIAN_FRONTEND=noninteractive: command not found.

This was fixed in rig by detecting such usages and moving the variables before the --, for example: sudo -s DEBIAN_FRONTEND=noninteractive -- apt-get install curl

Also reduces error log level of ParsePrivateKey (Fixes #374)

@kke kke added bug Something isn't working enhancement New feature or request labels May 18, 2022
@kke kke merged commit 4dbda8f into main May 18, 2022
@kke kke deleted the rig-062 branch May 18, 2022 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"ERRO can't parse keyfile" "ssh: this private key is passphrase protected" for a key that I didn't use
1 participant