From 20a2cb88fe2a6d0edbf0f026559368ad9852c90f Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sun, 24 May 2020 20:39:06 -0500 Subject: [PATCH] Update gravity-sync.sh --- gravity-sync.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 9595a6f..abd5aaa 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -312,7 +312,7 @@ function show_version { # Look for Changes function md5_compare { - primaryMD5=$(ssh \${REMOTE_USER}@\${REMOTE_HOST} 'md5sum /etc/pihole/gravity.db') + primaryMD5=$(ssh ${REMOTE_USER}@${REMOTE_HOST} 'md5sum /etc/pihole/gravity.db') secondMD5=$(md5sum ${PIHOLE_DIR}/${GRAVITY_FI}) if [ "$primaryMD5" == "$secondMD5" ] @@ -397,6 +397,9 @@ case $# in compare) TASKTYPE='COMPARE' + + import_gs + echo -e "${GOOD} ${MESSAGE}" md5_compare ;;