We can print the table name without any extra check as we already returned early in case there are no results.

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/2734/head
DL6ER 5 years ago
parent 5060605626
commit 44f8fcb600
No known key found for this signature in database
GPG Key ID: FB60471F0575164A

@ -128,9 +128,7 @@ scanDatabaseTable() {
wbMatch=true
# Print table name
if [[ ! -z "${result}" ]]; then
echo " ${matchType^} found in ${COL_BOLD}${table^}${COL_NC}"
fi
echo " ${matchType^} found in ${COL_BOLD}${table^}${COL_NC}"
# Loop over results and print them
mapfile -t results <<< "${result}"

Loading…
Cancel
Save