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: add a newline to the password decrypt command #30

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

b1n9s
Copy link

@b1n9s b1n9s commented Oct 3, 2023

The output of the command echo "${encrypted_password}" | base64 --decode | keybase pgp decrypt does not have a newline character at the end of the line, so the decrypted password is either mixed with the prompt (bash) or has a trailing character ('%' or '#' in zsh).

what

  • add a newline to the decrypt password

why

The output of the command echo "${encrypted_password}" | base64 --decode | keybase pgp decrypt does not have a newline character at the end of the line, so the decrypted password is either mixed with prompt (bash) or has a trailing character ('%' or '#' in zsh).
This commit pipes the decrypted password to echo to force a newline.

references

https://zsh.sourceforge.io/Doc/Release/Options.html#Prompting

The output of the command `echo "${encrypted_password}" | base64 --decode | keybase pgp decrypt` does not have a newline character at the end of the line, so the decrypted password is either mixed with prompt (bash) or has a trailing character ('%' or '#' in zsh).
@b1n9s b1n9s requested review from a team as code owners October 3, 2023 01:42
@b1n9s b1n9s requested review from srhopkins and joe-niland October 3, 2023 01:42
@hans-d hans-d added wip Work in Progress: Not ready for final review or merge and removed wip Work in Progress: Not ready for final review or merge labels Mar 2, 2024
@hans-d
Copy link

hans-d commented Mar 2, 2024

/terratest

@hans-d hans-d added the stale This PR has gone stale label Mar 3, 2024
@hans-d
Copy link

hans-d commented Mar 3, 2024

@b1n9s can you update the readme as per the failing readme check ?

Copy link

mergify bot commented Mar 9, 2024

Thanks @b1n9s for creating this pull request!

A maintainer will review your changes shortly. Please don't be discouraged if it takes a while.

While you wait, make sure to review our contributor guidelines.

Tip

Need help or want to ask for a PR review to be expedited?

Join us on Slack in the #pr-reviews channel.

@mergify mergify bot added triage Needs triage and removed stale This PR has gone stale labels Mar 17, 2024
@goruha goruha self-assigned this Apr 10, 2024
@goruha
Copy link
Member

goruha commented Apr 10, 2024

/terratest

@goruha
Copy link
Member

goruha commented Apr 10, 2024

Copy link
Member

@goruha goruha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check comment ^

@b1n9s
Copy link
Author

b1n9s commented Apr 24, 2024

@goruha, sorry I lost track of this PR, the purpose of this PR is to add a new line to the output, so the trailing '%' won't be shown in the output in zsh.

change to xargs echo -n will just be the same as it was.

@goruha
Copy link
Member

goruha commented Jun 6, 2024

/terratest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Needs triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants