1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-23 07:18:07 +00:00

Merge pull request #2744 from pi-hole/fix/cron-job-errors-untagged

Fix for preventing git error message in cron logs
This commit is contained in:
Mark Drobnak 2019-05-11 22:59:32 -04:00 committed by GitHub
commit ff5894d772
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ function get_local_branch() {
function get_local_version() { function get_local_version() {
# Return active branch # Return active branch
cd "${1}" 2> /dev/null || return 1 cd "${1}" 2> /dev/null || return 1
git describe --long --dirty --tags || return 1 git describe --long --dirty --tags 2> /dev/null || return 1
} }
# Source the setupvars config file # Source the setupvars config file