commit 50fc8ccf6b7e78e9a90d8455f3c79bfb6395d025 parent 08ebeb8f65347819c9afbba0b346b49837386397 Author: Jaromil <jaromil@dyne.org> Date: Wed, 18 Feb 2015 21:25:38 +0100 Merge pull request #191 from jturner314/rm-redundant-check Remove redundant test for $DISPLAY Diffstat:
M | tomb | | | 16 | +++++++--------- |
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/tomb b/tomb @@ -390,15 +390,13 @@ EOF` if _is_found "pinentry-gtk-2"; then gtkrc="" - [[ "$DISPLAY" = "" ]] || { - theme=/share/themes/tomb/gtk-2.0-key/gtkrc - for i in /usr/local /usr; do - [[ -r $i/$theme ]] && { - gtkrc="$i/$theme" - break - } - done - } + theme=/share/themes/tomb/gtk-2.0-key/gtkrc + for i in /usr/local /usr; do + [[ -r $i/$theme ]] && { + gtkrc="$i/$theme" + break + } + done [[ "$gtkrc" = "" ]] || { gtkrc_old="$GTK2_RC_FILES" export GTK2_RC_FILES="$gtkrc"