mirror of
https://github.com/baketnk/frame-yap.git
synced 2026-10-06 03:00:04 +02:00
Pin release installer and accept clean tagged version output
This commit is contained in:
1 parent
2c0e4ca4dc
commit
b3a9d39482
3 files changed
+5
-3
No files matched your search
+3
-1
@@ -24,7 +24,9 @@ foreach(mode IN ITEMS default help version invalid extra)
|
||||
message(FATAL_ERROR "${mode}: exit ${result}, expected ${expected_exit}: ${error}")
|
||||
endif()
|
||||
if(mode STREQUAL "version")
|
||||
string(REPLACE "\n" ";" lines "${output}")
|
||||
# Remove only the final terminator; a clean release has no git line.
|
||||
string(REGEX REPLACE "\n$" "" version_lines "${output}")
|
||||
string(REPLACE "\n" ";" lines "${version_lines}")
|
||||
list(GET lines 0 first_line)
|
||||
if(NOT first_line STREQUAL "frameyap ${EXPECTED_VERSION}")
|
||||
message(FATAL_ERROR "Unexpected version: ${output}")
|
||||
|
||||
Reference in new issue
Block a user