summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-09-16 15:07:47 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-09-16 15:07:47 -0400
commitf845e11fe281dd144311ff619cf16388a0f636e3 (patch)
treebb35f08a741d146023a5eef8a182722ecef8ab21 /bin
parent685674c33e8ad0839d9eed7873df64e0314caa45 (diff)
fix #745, avoid incompatibility
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mailsync b/bin/mailsync
index a633308..4469d55 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -25,7 +25,7 @@ eval "$(grep -h -- \
"$HOME/.profile" "$HOME/.bash_profile" "$HOME/.zprofile" "$HOME/.config/zsh/.zprofile" "$HOME/.zshenv" \
"$HOME/.bashrc" "$HOME/.zshrc" "$HOME/.config/zsh/.zshrc" "$HOME/.pam_environment" 2>/dev/null)"
-export GPG_TTY=$TTY
+export GPG_TTY="$(tty)"
[ -n "$MBSYNCRC" ] && alias mbsync="mbsync -c $MBSYNCRC" || MBSYNCRC="$HOME/.mbsyncrc"