From df7c91184a667c02d923ffe8e37a51369378e2e8 Mon Sep 17 00:00:00 2001 From: Steve Jenkins Date: Wed, 10 Jul 2019 08:12:46 -0700 Subject: [PATCH] Release 1.6 --- pihole-cloudsync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pihole-cloudsync.sh b/pihole-cloudsync.sh index f6d03f3..d43ddd8 100755 --- a/pihole-cloudsync.sh +++ b/pihole-cloudsync.sh @@ -5,7 +5,7 @@ # pihole-cloudsync # Helper script to keep multiple Pi-holes' lists synchronized via Git -# Version 1.5 - July 10, 2019 - Steve Jenkins (stevejenkins.com) +# Version 1.6 - July 10, 2019 - Steve Jenkins (stevejenkins.com) # SETUP # Follow the instructions in the README to set up your own private Git @@ -56,7 +56,7 @@ push () { cd $pihole_dir || exit $SUDO cp $ad_list $black_list $blacklist_list $whitelist_list $regex_list $personal_git_dir cd $personal_git_dir || exit - CHANGED=$($SUDO git remote update > /dev/null && git --work-tree=$personal_git_dir status --porcelain) + CHANGED=$($SUDO git remote update && git --work-tree=$personal_git_dir status --porcelain) if [ -n "${CHANGED}" ]; then echo 'Local Pi-hole lists are different than remote Git repo. Updating remote repo...'; rightnow=$(date +"%B %e, %Y %l:%M%p") @@ -73,7 +73,7 @@ push () { pull () { cd $personal_git_dir || exit - CHANGED=$($SUDO git remote update > /dev/null && git --work-tree=$personal_git_dir status --porcelain) + CHANGED=$($SUDO git remote update && git --work-tree=$personal_git_dir status --porcelain) if [ -n "${CHANGED}" ]; then echo 'Remote Git repo is different than local Pi-hole lists. Updating local lists...'; # Remove -q option if you don't want to run in "quiet" mode