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.
This commit is contained in:
Jim Turner 2015-02-17 23:01:46 -05:00
parent 08ebeb8f65
commit 346a31ac5b

16
tomb
View File

@ -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"