mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Shellcheck
Suggesting to use parameter expansion but we need to be able to identify the start of each line Signed-off-by: MMotti <matthew.w.motti@gmail.com>
This commit is contained in:
parent
785f1fedd9
commit
10fbed50f3
@ -156,6 +156,7 @@ if [[ "${#regexlist[@]}" -ne 0 ]]; then
|
|||||||
# Echo the "matched" message, indented by one space
|
# Echo the "matched" message, indented by one space
|
||||||
echo " ${str_message}"
|
echo " ${str_message}"
|
||||||
# Echo the "results" message, each line indented by three spaces
|
# Echo the "results" message, each line indented by three spaces
|
||||||
|
# shellcheck disable=SC2001
|
||||||
echo "${str_result}" | sed 's/^/ /'
|
echo "${str_result}" | sed 's/^/ /'
|
||||||
else
|
else
|
||||||
echo "π Regex list"
|
echo "π Regex list"
|
||||||
|
Loading…
Reference in New Issue
Block a user