소스 검색

makefile: remove 'v' prefix from version strings

Fabian Peter Hammerle 3 년 전
부모
커밋
3eae728447
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -1,7 +1,7 @@
 # sync with https://github.com/fphammerle/docker-onion-service/blob/master/Makefile
 
 IMAGE_NAME := docker.io/fphammerle/home-assistant
-PROJECT_VERSION := $(shell git describe --match=v* --abbrev=0 --dirty)
+PROJECT_VERSION = $(shell git describe --match=v* --abbrev=0 --dirty | sed -e 's/^v//')
 HOMEASSISTANT_VERSION := $(shell grep -Po 'HOME_ASSISTANT_VERSION=\K.+' Dockerfile)
 ARCH = $(shell arch)
 # architecture[arm_variant]