1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Suppress tty output for busybox compatibility

This commit is contained in:
Joe Groocock 2018-04-21 00:15:17 +01:00
parent ff4bdb5ec2
commit 73ecd1f584
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -17,7 +17,7 @@ SAVEHIST=999999
exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; } exists() { which $@ 0<&- 1>/dev/null 2>/dev/null; }
# Only set tty if running interactively # Only set tty if running interactively
if exists tty && tty -s; then if exists tty && tty -s 1>/dev/null 2>/dev/null; then
# Resolve at shell runtime # Resolve at shell runtime
export GPG_TTY="$(tty)" export GPG_TTY="$(tty)"
fi fi