From 9443b6bdaa1e7939473a7aca0b5ae85adcf40f5b Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 5 Oct 2020 19:13:25 +0200 Subject: Prevent the script from aborting early if no custom wallpaper is found --- make_slackware_live.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index fc3d7ba..7b349a5 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -946,10 +946,11 @@ function plasma5_custom_bg() { # Exit immediately if the image file is not found: if ! readlink -f ${LIVE_TOOLDIR}/media/${LIVEDE,,}/bg/background.* 1>/dev/null 2>&1 ; then - return 1 + echo "-- No ${LIVEDE} custom wallpaper image." + return fi - echo "-- Configuring custom background image." + echo "-- Configuring ${LIVEDE} custom background image." # First convert our image into a JPG in the liveslak directory: mkdir -p ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN}/${LIVEDE,,} convert ${LIVE_TOOLDIR}/media/${LIVEDE,,}/bg/background.* ${LIVE_ROOTDIR}/usr/share/${LIVEMAIN}/${LIVEDE,,}/background.jpg -- cgit v1.2.3