Address lint complaints

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-05-30 21:32:35 +02:00
parent c3023fe681
commit 285e6fe090
No known key found for this signature in database
GPG Key ID: FB60471F0575164A
1 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,7 @@ fi
flushARP(){
local output
if [[ "$@" != *"quiet"* ]]; then
if [[ "${args[1]}" != *"quiet"* ]]; then
echo -ne " ${INFO} Flushing network table ..."
fi
@ -43,6 +43,7 @@ flushARP(){
return 1
fi
# Truncate network table in pihole-FTL.db
if ! output=$(sqlite3 "${DBFILE}" "DELETE FROM network;" 2>&1); then
echo -e "${OVER} ${CROSS} Failed to truncate network table"
echo " Database location: ${DBFILE}"
@ -50,7 +51,7 @@ flushARP(){
return 1
fi
if [[ "$@" != *"quiet"* ]]; then
if [[ "${args[1]}" != *"quiet"* ]]; then
echo -e "${OVER} ${TICK} Flushed network table"
fi
}