Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDL6ER <dl6er@dl6er.de>2021-12-21 16:00:46 +0300
committerDL6ER <dl6er@dl6er.de>2021-12-21 16:00:46 +0300
commitb06efb6ab7c3400b99cd7e4f8509cf52092d3671 (patch)
tree4a6e7accd29a3331bb7399cd46aec8b46f69c1ce /gravity.sh
parentab4bce4787093428305647ad547ed61c8d4809fd (diff)
Declare variables local
Signed-off-by: DL6ER <dl6er@dl6er.de>
Diffstat (limited to 'gravity.sh')
-rwxr-xr-xgravity.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/gravity.sh b/gravity.sh
index c2033fcf..bd2ae909 100755
--- a/gravity.sh
+++ b/gravity.sh
@@ -849,7 +849,8 @@ gravity_Cleanup() {
}
database_recovery() {
- str="Checking integrity of existing gravity database"
+ local result
+ local str="Checking integrity of existing gravity database"
echo -ne " ${INFO} ${str}..."
if result="$(pihole-FTL sqlite3 "${gravityDBfile}" "PRAGMA integrity_check" 2>&1)"; then
echo -e "${OVER} ${TICK} ${str} - no errors found"