Use explicit calls for function to self-document

This commit is contained in:
Dan Schaper 2016-11-02 11:39:22 -07:00
parent c1a3f003e8
commit 3d43e1568c
2 changed files with 7 additions and 10 deletions

3
.gitignore vendored
View file

@ -3,4 +3,5 @@
*.swp
__pycache__
.cache
*.yml
.pullapprove.yml

View file

@ -89,15 +89,11 @@ main() {
fi
echo "::: Checking for updates..."
# Checks Pi-hole version > pihole only > current local git repo version : returns string in format vX.X.X
pihole_version_current="$(/usr/local/bin/pihole -v -p -c)"
# Checks Pi-hole version > pihole only > remote upstream repo version : returns string in format vX.X.X
pihole_version_latest="$(/usr/local/bin/pihole -v -p -l)"
# Checks Pi-hole version > admin only > current local git repo version : returns string in format vX.X.X
web_version_current="$(/usr/local/bin/pihole -v -a -c)"
# Checks Pi-hole version > admin only > remote upstream repo version : returns string in format vX.X.X
web_version_latest="$(/usr/local/bin/pihole -v -a -l)"
# Checks Pi-hole version string in format vX.X.X
pihole_version_current="$(/usr/local/bin/pihole version --pihole --current)"
pihole_version_latest="$(/usr/local/bin/pihole version --pihole --latest)"
web_version_current="$(/usr/local/bin/pihole version --admin --current)"
web_version_latest="$(/usr/local/bin/pihole version --admin --latest)"
# Logic
# If latest versions are blank - we've probably hit Github rate limit (stop running `pihole -up so often!):