Update pihole-sync

This commit is contained in:
2024-10-06 12:17:52 -05:00
parent 565dff0392
commit 777b99242d

View File

@@ -130,7 +130,7 @@ push_initialize () {
# Add all lists to local Git repo
$SUDO git add .
echo "Local Pi-hole initialized in Push mode and local lists were added to local Git repo. Run 'pihole-cloudsync --push' to push to remote Git repo.";
echo "Local Pi-hole initialized in Push mode and local lists were added to local Git repo. Run '${personal_git_dir}/pihole-sync --push' to push to remote Git repo.";
}
pull_initialize () {
# Go to Pi-hole directory, exit if doesn't exist
@@ -160,7 +160,7 @@ pull_initialize () {
# Display success messages
echo "Local Pi-hole initialized in Pull mode and first pull successfully completed.";
echo "Future pulls can now be perfomed with 'pihole-cloudsync --pull'.";
echo "Future pulls can now be perfomed with '${personal_git_dir}/pihole-sync --pull'.";
}
push () {
# Go to Pi-hole directory, exit if doesn't exist
@@ -255,7 +255,7 @@ for arg in "$@"; do
# Help - Displays help dialog
elif [ "$arg" == "--help" ] || [ "$arg" == "-h" ] || [ "$arg" == "-?" ]; then
cat <<- EOF
Usage: pihole-cloudsync <option>
Usage: ${personal_git_dir}/pihole-sync <option>
Options:
--push, --upload, --up, -u Push (upload) your Pi-hole lists to a remote Git repo
@@ -266,16 +266,16 @@ for arg in "$@"; do
--version, -v Show the current version of pihole-cloudsync
Examples:
'pihole-cloudsync --push' will push (upload) your lists to a Git repo
'pihole-cloudsync --pull' will pull (download) your lists from a Git repo from origin/master
'pihole-cloudsync --pull main' will pull (download) your lists from a Git repo from origin/main
'${personal_git_dir}/pihole-sync --push' will push (upload) your lists to a Git repo
'${personal_git_dir}/pihole-sync --pull' will pull (download) your lists from a Git repo from origin/master
'${personal_git_dir}/pihole-sync --pull main' will pull (download) your lists from a Git repo from origin/main
Project Home: https://github.com/stevejenkins/pihole-cloudsync
EOF
# Version - Displays version number
elif [ "$arg" == "--version" ] || [ "$arg" == "-v" ]; then
echo 'pihole-cloudsync v'$version' - Updated '"$update";
echo '${personal_git_dir}/pihole-sync v'$version' - Updated '"$update";
echo 'https://github.com/stevejenkins/pihole-cloudsync';
# Invalid command line option was passed