From 3220e2b978d934898ff7172d48f613d5d4131945 Mon Sep 17 00:00:00 2001 From: mpiederiet Date: Tue, 7 May 2019 14:54:25 +0200 Subject: [PATCH] Fix for preventing git error message in cron logs Fix to prevent "fatal: No names found, cannot describe anything" git message during scheduled update checks Signed-off-by: DL6ER --- advanced/Scripts/updatecheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advanced/Scripts/updatecheck.sh b/advanced/Scripts/updatecheck.sh index 257c1929..26dc2ac2 100755 --- a/advanced/Scripts/updatecheck.sh +++ b/advanced/Scripts/updatecheck.sh @@ -34,7 +34,7 @@ function get_local_branch() { function get_local_version() { # Return active branch 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