From 285e6fe090069ffd38e6679b38256a9632e2f9e8 Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 30 May 2019 21:32:35 +0200 Subject: [PATCH] Address lint complaints Signed-off-by: DL6ER --- advanced/Scripts/piholeARPTable.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/advanced/Scripts/piholeARPTable.sh b/advanced/Scripts/piholeARPTable.sh index 6af96d91..dab730f4 100755 --- a/advanced/Scripts/piholeARPTable.sh +++ b/advanced/Scripts/piholeARPTable.sh @@ -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 }