Improve table formatting

Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
pull/2758/head
Mcat12 5 years ago
parent 807ce0af4e
commit 7b5fc60e00
No known key found for this signature in database
GPG Key ID: ABB8FC9789AF524D

@ -1060,7 +1060,7 @@ show_db_entries() {
OLD_IFS="$IFS"
IFS=$'\r\n'
local entries=()
mapfile -t entries < <(sqlite3 "${PIHOLE_GRAVITY_DB_FILE}" -cmd ".headers on" "${query}")
mapfile -t entries < <(sqlite3 "${PIHOLE_GRAVITY_DB_FILE}" -cmd ".headers on" -cmd ".mode column" "${query}")
for line in "${entries[@]}"; do
log_write " ${line}"

Loading…
Cancel
Save