Skip to content
Snippets Groups Projects
Commit 9d9d2aff authored by Ludwig Knüpfer's avatar Ludwig Knüpfer
Browse files

make: make RIOT_VERSION fail-safe

parent 76601dbf
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ include $(RIOTBASE)/Makefile.cflags
# make the RIOT version available to the program
ifeq ($(origin RIOT_VERSION), undefined)
GIT_STRING := $(shell git describe --always --abbrev=4 --dirty=-`hostname`)
GIT_STRING := $(shell git describe --always --abbrev=4 --dirty=-`hostname` 2> /dev/null)
ifneq (,$(GIT_STRING))
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
ifeq ($(strip $(GIT_BRANCH)),master)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment