mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-23 22:53:43 +00:00
Use explicit calls for function to self-document
This commit is contained in:
parent
c1a3f003e8
commit
3d43e1568c
2 changed files with 7 additions and 10 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -3,4 +3,5 @@
|
|||
*.swp
|
||||
__pycache__
|
||||
.cache
|
||||
*.yml
|
||||
.pullapprove.yml
|
||||
|
||||
|
|
|
@ -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!):
|
||||
|
|
Loading…
Reference in a new issue