From 346a31ac5b8c748910ebc9fa743def9a04785442 Mon Sep 17 00:00:00 2001 From: Jim Turner Date: Tue, 17 Feb 2015 23:01:46 -0500 Subject: [PATCH] Remove redundant test for $DISPLAY This block is already wrapped in the `else` block of the same test for the `$DISPLAY` variable, so this test is redundant. --- tomb | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tomb b/tomb index 0ecebd6..5a87586 100755 --- 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"