fix(hostname): handle background color when failed

This commit is contained in:
Johann Dreo 2025-01-11 20:50:14 +01:00
commit a3de748347

View file

@ -882,9 +882,13 @@ __jolly_activate_hostname() {
if __jolly_make_field "$hostname" ${JOLLY_COLOR_LITE[@]+"${JOLLY_COLOR_LITE[@]}"} ; then
_JOLLY_HOSTNAME="${jolly_field}"
else
if __jolly_make_field "$lp_hostname" ${JOLLY_COLOR_LITE[@]+"${JOLLY_COLOR_LITE[@]}"} ; then
_JOLLY_HOSTNAME="${jolly_field}"
else
_JOLLY_HOSTNAME="${lp_hostname}"
fi
fi
}