mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-22 17:50:47 +00:00
run script generator with bash [#METR-9800]
This commit is contained in:
parent
fd1e058e05
commit
3e5e11f7f6
@ -5,7 +5,7 @@ echo -n "#define REVISION " >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h
|
||||
|
||||
cd ${CMAKE_CURRENT_SOURCE_DIR};
|
||||
|
||||
if (git rev-parse --is-inside-work-tree >/dev/null 2>&1)
|
||||
if (git rev-parse --is-inside-work-tree &> /dev/null)
|
||||
then
|
||||
# GIT
|
||||
( git describe --tags || echo 1 ) | cut -d "-" -f 1 >> ${CMAKE_CURRENT_BINARY_DIR}/src/revision.h;
|
||||
|
Loading…
Reference in New Issue
Block a user