diff --git a/dietpi/func/dietpi-banner b/dietpi/func/dietpi-banner index 2ee0835630..849c968850 100755 --- a/dietpi/func/dietpi-banner +++ b/dietpi/func/dietpi-banner @@ -119,7 +119,7 @@ ## Sometimes the title is long, so a sanity check is performed to fold the title ## if it exceeds the window size. Because of the hyphen it receives 3 spaces padding. if (( $title_len >= $TERM_WIDTH )); then - title=$(echo "$stripped_title" | fold -s -w $TERM_WIDTH) + title=$(echo "$stripped_title" | fold -s -w "$TERM_WIDTH") title="${title//$'\n'/$'\n' }" title="${aCOLOUR[1]}${title}$COLOUR_RESET" ## Recalculate the title length based on the last line with padding @@ -132,7 +132,7 @@ ## The description is typically very long, and is folded from the second line ## onwards into the remaining available space, with left padding. if (( $descp_len >= $avail_len )); then - descp=$(echo "$stripped_descp" | fold -s -w $avail_len) + descp=$(echo "$stripped_descp" | fold -s -w "$avail_len") descp="${descp//$'\n'/$'\n'${left_pad}}" fi fi