Skip to content

Instantly share code, notes, and snippets.

@travnewmatic
Last active May 3, 2019 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save travnewmatic/253bbb7fa435a03e2d081d6c89b581d4 to your computer and use it in GitHub Desktop.
Save travnewmatic/253bbb7fa435a03e2d081d6c89b581d4 to your computer and use it in GitHub Desktop.
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