Skip to content

Commit

Permalink
Release 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
stevejenkins committed Jul 10, 2019
1 parent a7dcb2a commit c5410e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pihole-cloudsync
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# pihole-cloudsync
# Helper script to keep multiple Pi-holes' lists synchronized via Git

# Version 1.10 - July 10, 2019 - Steve Jenkins (stevejenkins.com)
# Version 1.11 - July 10, 2019 - Steve Jenkins (stevejenkins.com)

# SETUP
# Follow the instructions in the README to set up your own private Git
Expand Down Expand Up @@ -56,7 +56,7 @@ push () {
$SUDO cp $ad_list $black_list $blacklist_list $whitelist_list $regex_list $personal_git_dir
cd $personal_git_dir || exit
$SUDO git remote update > /dev/null
CHANGED=$($SUDO git --work-tree=$personal_git_dir status --branch --porcelain)
CHANGED=$($SUDO 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")
Expand All @@ -73,7 +73,7 @@ push () {
pull () {
cd $personal_git_dir || exit
$SUDO git remote update > /dev/null
CHANGED=$($SUDO git --work-tree=$personal_git_dir status --branch --porcelain)
CHANGED=$($SUDO git log HEAD..origin/master --oneline)
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
Expand Down

0 comments on commit c5410e1

Please sign in to comment.