From dfb025aa8a210086906bc880101c2a469eb2eac6 Mon Sep 17 00:00:00 2001 From: Diego Pasqualin <dpasqualin@c3sl.ufpr.br> Date: Fri, 11 Oct 2013 16:19:05 -0300 Subject: [PATCH] 70-update_background_image: Check whether background image exists On minicom server, for instance, the default LE background image is not used Signed-off-by: Diego Pasqualin <dpasqualin@c3sl.ufpr.br> --- scripts/70-update_background_image | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/70-update_background_image b/scripts/70-update_background_image index 0644b72..8f2df6e 100755 --- a/scripts/70-update_background_image +++ b/scripts/70-update_background_image @@ -66,8 +66,10 @@ case "$MIRROR" in esac for IMAGE in $IMAGES; do - convert -font helvetica -fill "#f3f2ed" -pointsize 200 -gravity center \ - -draw "rotate 335 text 0,0 '$DISTNAME $RELEASE'" $IMAGE $IMAGE + if [ -f $IMAGE ]; then + convert -font helvetica -fill "#f3f2ed" -pointsize 200 -gravity center \ + -draw "rotate 335 text 0,0 '$DISTNAME $RELEASE'" $IMAGE $IMAGE + fi done exit 0 -- GitLab