From 4fb8e18d03191fce1e291f3d98b4d39050512daf Mon Sep 17 00:00:00 2001 From: fluxgen Date: Thu, 22 Jan 2004 05:48:41 +0000 Subject: Fix missing sanitycheck as found by Tom Ryan --- util/fbsetbg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/util/fbsetbg b/util/fbsetbg index b4920df..b92cb3b 100644 --- a/util/fbsetbg +++ b/util/fbsetbg @@ -23,7 +23,7 @@ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # -# $Id: fbsetbg,v 1.28 2004/01/17 01:29:40 fluxgen Exp $ +# $Id: fbsetbg,v 1.29 2004/01/22 05:48:41 fluxgen Exp $ # Portability notes: # To guarantee this script works on all platforms that support fluxbox @@ -312,7 +312,9 @@ done # Find the default wallpapersetter if [ "$setterfromcommandline" != true ]; then - wpsetters="`awk '/wpsetters/ {print $2}' $lastwallpaper` $wpsetters" + if [ -r "$lastwallpaper" ]; then + wpsetters="`awk '/wpsetters/ {print $2}' $lastwallpaper` $wpsetters" + fi for wpsetter in $wpsetters; do if find_it $wpsetter; then WPSETTER=$wpsetter -- cgit v0.11.2