-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
base: main
Are you sure you want to change the base?
Conversation
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).
/terratest |
@b1n9s can you update the readme as per the failing readme check ? |
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 |
/terratest |
@b1n9s should not the command be |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check comment ^
@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 |
/terratest |
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
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