Skip to content

Commit

Permalink
shellcheck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtekman committed Oct 31, 2022
1 parent a2225e8 commit ac54ef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dietpi/func/dietpi-banner
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@
## Parse the above colour strings and use them to generate an expression to match them
## via bash substitution
__make_strip_color(){
local tmp="${aCOLOUR[@]} $COLOUR_RESET"
# shellcheck disable=SC2124
local tmp="${aCOLOUR[@]} $COLOUR_RESET" ## convert array to string
tmp="+(${tmp// /|})" ## convert list into OR expression
tmp="${tmp//\\e/\\\\\\e}" ## ensure '\e' exists
tmp="${tmp//\[/\\[}" ## ensure '\[' exists
Expand Down

0 comments on commit ac54ef4

Please sign in to comment.