We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2225e8 commit ac54ef4Copy full SHA for ac54ef4
dietpi/func/dietpi-banner
@@ -80,7 +80,8 @@
80
## Parse the above colour strings and use them to generate an expression to match them
81
## via bash substitution
82
__make_strip_color(){
83
- local tmp="${aCOLOUR[@]} $COLOUR_RESET"
+ # shellcheck disable=SC2124
84
+ local tmp="${aCOLOUR[@]} $COLOUR_RESET" ## convert array to string
85
tmp="+(${tmp// /|})" ## convert list into OR expression
86
tmp="${tmp//\\e/\\\\\\e}" ## ensure '\e' exists
87
tmp="${tmp//\[/\\[}" ## ensure '\[' exists
0 commit comments