Skip to content

Commit fae2ef6

Browse files
committed
shellcheck
1 parent c663c3a commit fae2ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dietpi/func/dietpi-banner

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
## Sometimes the title is long, so a sanity check is performed to fold the title
120120
## if it exceeds the window size. Because of the hyphen it receives 3 spaces padding.
121121
if (( $title_len >= $TERM_WIDTH )); then
122-
title=$(echo "$stripped_title" | fold -s -w $TERM_WIDTH)
122+
title=$(echo "$stripped_title" | fold -s -w "$TERM_WIDTH")
123123
title="${title//$'\n'/$'\n' }"
124124
title="${aCOLOUR[1]}${title}$COLOUR_RESET"
125125
## Recalculate the title length based on the last line with padding
@@ -132,7 +132,7 @@
132132
## The description is typically very long, and is folded from the second line
133133
## onwards into the remaining available space, with left padding.
134134
if (( $descp_len >= $avail_len )); then
135-
descp=$(echo "$stripped_descp" | fold -s -w $avail_len)
135+
descp=$(echo "$stripped_descp" | fold -s -w "$avail_len")
136136
descp="${descp//$'\n'/$'\n'${left_pad}}"
137137
fi
138138
fi

0 commit comments

Comments
 (0)