<div dir="ltr">Perhaps a cleaner solution to this would be to add to the beginning of the script:<div><br></div><div>export GPG_TTY="$(tty)"</div><div><br></div><div><br></div><div>Would somebody facing this problem try that out and report back?</div></div>