From: Simon Ruderich Date: Sun, 4 Nov 2012 15:20:54 +0000 (+0100) Subject: xinitrc: Fix background check. X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=272053303a40c6fc2397452eb4e1bd3d89d627c0 xinitrc: Fix background check. The quotes are necessary or test -n always assumes the result is not empty because it gets no parameters (the shell expands $set_background which is empty and then doesn't pass anything to test -n). --- diff --git a/xinitrc b/xinitrc index e434cba..127683d 100755 --- a/xinitrc +++ b/xinitrc @@ -55,7 +55,7 @@ if test -f "$HOME/.xinitrc.local"; then fi # Change the background if available. -if test -f "$HOME/.background" && test -n $set_background; then +if test -f "$HOME/.background" && test -n "$set_background"; then if test -x /usr/bin/hsetroot; then hsetroot -full "$HOME/.background" elif test -x /usr/bin/feh; then