Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
on computer that works:
tnewman@host0:~$ ./go-jira-bash
++ '[' -f /home/tnewman/.gpg-agent-info ']'
++ '[' '!' -f /home/tnewman/.gpg-agent.conf ']'
++ '[' -n '' ']'
+++ tty
++ export GPG_TTY=/dev/pts/1
++ GPG_TTY=/dev/pts/1
on computer that does not work:
tnewman@lanyu:~$ ./go-jira-bash
+ ./go-jira-bash
++ '[' -f /home/tnewman/.gpg-agent-info ']'
++ '[' '!' -f /home/tnewman/.gpg-agent.conf ']'
++ '[' -n /run/user/1000/gnupg/S.gpg-agent:0:1 ']'
++ nc -U /run/user/1000/gnupg/S.gpg-agent
change to #nc -U "${GPG_AGENT_INFO%%:*}" >/dev/null </dev/null
nc -Uz "${GPG_AGENT_INFO%%:*}"
tnewman@lanyu:~$ ./go-jira-bash
+ ./go-jira-bash
+ '[' -f /home/tnewman/.gpg-agent-info ']'
+ '[' '!' -f /home/tnewman/.gpg-agent.conf ']'
+ '[' -n /run/user/1000/gnupg/S.gpg-agent:0:1 ']'
+ nc -Uz /run/user/1000/gnupg/S.gpg-agent
+ '[' '!' -S /run/user/1000/gnupg/S.gpg-agent -o 0 '!=' 0 ']'
++ tty
+ export GPG_TTY=/dev/pts/8
+ GPG_TTY=/dev/pts/8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.