From 3e5e11f7f658f9419ed00d54f3630b70f37667c6 Mon Sep 17 00:00:00 2001 From: Pavel Kartavyy Date: Mon, 17 Feb 2014 17:20:59 +0000 Subject: [PATCH] run script generator with bash [#METR-9800] --- libs/libcommon/src/create_revision.sh.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libcommon/src/create_revision.sh.cmake b/libs/libcommon/src/create_revision.sh.cmake index dd9b35e1cff..b9e549c4a7e 100644 --- a/libs/libcommon/src/create_revision.sh.cmake +++ b/libs/libcommon/src/create_revision.sh.cmake @@ -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;