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

Fixing exit code keybase_logged_in #188

Merged
merged 1 commit into from
Jun 23, 2020

Conversation

RobertYoung
Copy link

Running tfenv install 0.12.19 with keybase installed and following Hashicorp user still didn't verify Terraforms PGP signature. Upon further investigation, I noticed that keybase_logged_in had 141 exit code.

https://stackoverflow.com/a/19120674

bash-3.2$ keybase status | grep -Eq '^Logged in:[[:space:]]*yes';
bash-3.2$ echo ${PIPESTATUS[@]}
141 0

Changed the grep so it outputs the correct exit code:

bash-3.2$ grep -Eq '^Logged in:[[:space:]]*yes' <(keybase status)
bash-3.2$ echo ${PIPESTATUS[@]}
0
bash-3.2$ grep -Eq '^Logged in:[[:space:]]*no' <(keybase status)
bash-3.2$ echo ${PIPESTATUS[@]}
1

@Zordrak Zordrak merged commit 0494129 into tfutils:master Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants