diff options
author | Eric Hameleers <alien@slackware.com> | 2020-10-05 19:13:25 +0200 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2020-10-05 19:13:25 +0200 |
commit | 9443b6bdaa1e7939473a7aca0b5ae85adcf40f5b (patch) | |
tree | fc0e4d1539330095d91aad01e924234562773e2d /make_slackware_live.sh | |
parent | 93f93d57fd24caf61cf5ed73a6527d267ec7312a (diff) | |
download | liveslak-9443b6bdaa1e7939473a7aca0b5ae85adcf40f5b.tar.gz liveslak-9443b6bdaa1e7939473a7aca0b5ae85adcf40f5b.tar.xz |
Prevent the script from aborting early if no custom wallpaper is found
Diffstat (limited to '')
-rwxr-xr-x | make_slackware_live.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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 |