From 272053303a40c6fc2397452eb4e1bd3d89d627c0 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 4 Nov 2012 16:20:54 +0100 Subject: [PATCH] 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). --- xinitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.44.1