diff --git a/integrations/influxunifi/Makefile b/integrations/influxunifi/Makefile index 965d618e..1f99e583 100644 --- a/integrations/influxunifi/Makefile +++ b/integrations/influxunifi/Makefile @@ -3,8 +3,10 @@ URL=https://github.com/davidnewhall/unifi-poller MAINT="David Newhall II " DESC="This daemon polls a Unifi controller at a short interval and stores the collected metric data in an Influx Database." PACKAGE:=./cmd/$(BINARY) -VERSION:=$(shell git tag -l --merged | tail -n1 | tr -d v) -ITERATION:=$(shell git rev-list --count HEAD) +ifeq ($(VERSION),) + VERSION:=$(shell git tag -l --merged | tail -n1 | tr -d v||echo development) +endif +ITERATION:=$(shell git rev-list --count HEAD||echo 0) all: man build