From 293f6d565cc8f5c889257205ce6d57f63774d395 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 19 Apr 2023 18:16:24 +0300 Subject: [PATCH] fix return --- earth_wallpaper.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/earth_wallpaper.sh b/earth_wallpaper.sh index 0bd37e2..fba14fa 100755 --- a/earth_wallpaper.sh +++ b/earth_wallpaper.sh @@ -24,12 +24,12 @@ check_font() { font_name="${1}" convert_cmd="$(which convert)" if "${convert_cmd}" -list font | grep Font: | awk '{print($2)}' | grep font_name > /dev/null; then - return "${font_name}" + echo "${font_name}" else new_font_name="$("${convert_cmd}" -list font | grep Font: | awk '{print($2)}' |head -n 1)" if [ "${new_font_name}" != "" ]; then message "Couldn't find font '${font_name}' in the list from convert, so I'm using the first '${new_font_name}'" - return "${new_font_name}" + echo "${new_font_name}" else message "Error. No fonts available for convert!" p exit 1