mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-25 22:09:49 +00:00
Always show something, even if it's just the short hash of the latest commit.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
81939ab265
commit
ebfffea5dc
1 changed files with 2 additions and 4 deletions
|
@ -8,8 +8,6 @@
|
||||||
# This file is copyright under the latest version of the EUPL.
|
# This file is copyright under the latest version of the EUPL.
|
||||||
# Please see LICENSE file for your rights under this license.
|
# Please see LICENSE file for your rights under this license.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Flags:
|
# Flags:
|
||||||
latest=false
|
latest=false
|
||||||
current=false
|
current=false
|
||||||
|
@ -18,9 +16,9 @@ DEFAULT="-1"
|
||||||
|
|
||||||
normalOutput() {
|
normalOutput() {
|
||||||
piholeVersion=$(cd /etc/.pihole/ \
|
piholeVersion=$(cd /etc/.pihole/ \
|
||||||
&& git describe --tags --abbrev=0)
|
&& git describe --tags --always)
|
||||||
webVersion=$(cd /var/www/html/admin/ \
|
webVersion=$(cd /var/www/html/admin/ \
|
||||||
&& git describe --tags --abbrev=0)
|
&& git describe --tags --always)
|
||||||
|
|
||||||
piholeHash=$(cd /etc/.pihole/ \
|
piholeHash=$(cd /etc/.pihole/ \
|
||||||
&& git rev-parse --short HEAD)
|
&& git rev-parse --short HEAD)
|
||||||
|
|
Loading…
Add table
Reference in a new issue