mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-25 00:30:29 +00:00
Add (optional) date_modified field and use vw_whitelist view in vw_blacklist
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
b4ae142149
commit
126f7101ff
2 changed files with 11 additions and 12 deletions
|
@ -186,9 +186,9 @@ Displaylist() {
|
|||
num_pipes="$(grep -c "^" <<< "$(grep -o "|" <<< "${line}")")"
|
||||
|
||||
# Extract domain and enabled status based on the obtained number of pipe characters
|
||||
domain="$(cut -d'|' -f"-$((num_pipes-2))" <<< "${line}")"
|
||||
enabled="$(cut -d'|' -f"$((num_pipes-1))" <<< "${line}")"
|
||||
dateadded="$(cut -d'|' -f"$((num_pipes))" <<< "${line}")"
|
||||
domain="$(cut -d'|' -f"-$((num_pipes-3))" <<< "${line}")"
|
||||
enabled="$(cut -d'|' -f"$((num_pipes-2))" <<< "${line}")"
|
||||
dateadded="$(cut -d'|' -f"$((num_pipes-1))" <<< "${line}")"
|
||||
|
||||
# Translate boolean status into human readable string
|
||||
if [[ "${enabled}" -eq 1 ]]; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue