Skip to content

Commit fefd8b0

Browse files
committed
fix(Makefile): add missing dollar sign and add assert for non empty version strings
Change-Id: I83265a11182df6d28f2ef3a5f5454adba27c95ea Signed-off-by: Thomas Kosiewski <[email protected]>
1 parent f886ea1 commit fefd8b0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,15 @@ XCPROJECT := Coder\ Desktop/Coder\ Desktop.xcodeproj
1111
SCHEME := Coder\ Desktop
1212
SWIFT_VERSION := 6.0
1313

14-
MARKETING_VERSION=$(shell git describe --tags --abbrev=0 | sed 's/^v//' | sed 's/-.*$//')
1514
CURRENT_PROJECT_VERSION=$(shell git describe --tags)
15+
ifeq ($(strip $(CURRENT_PROJECT_VERSION)),)
16+
$(error CURRENT_PROJECT_VERSION cannot be empty)
17+
endif
18+
19+
MARKETING_VERSION=$(shell git describe --tags --abbrev=0 | sed 's/^v//' | sed 's/-.*$$//')
20+
ifeq ($(strip $(MARKETING_VERSION)),)
21+
$(error MARKETING_VERSION cannot be empty)
22+
endif
1623

1724
# Define the keychain file name first
1825
KEYCHAIN_FILE := app-signing.keychain-db

0 commit comments

Comments
 (0)