fix build string for builds without valid .git folder

This commit is contained in:
Andre Puschmann 2019-01-21 15:30:22 +01:00
parent 777f5b22dc
commit a436baed39
3 changed files with 3 additions and 3 deletions

View File

@ -364,7 +364,7 @@ std::string enb::get_build_mode()
std::string enb::get_build_info()
{
if (std::string(srslte_get_build_info()) == "") {
if (std::string(srslte_get_build_info()).find(" ") != std::string::npos) {
return std::string(srslte_get_version());
}
return std::string(srslte_get_build_info());

View File

@ -336,7 +336,7 @@ std::string get_build_mode()
std::string get_build_info()
{
if (std::string(srslte_get_build_info()) == "") {
if (std::string(srslte_get_build_info()).find(" ") != std::string::npos) {
return std::string(srslte_get_version());
}
return std::string(srslte_get_build_info());

View File

@ -133,7 +133,7 @@ std::string ue_base::get_build_mode()
std::string ue_base::get_build_info()
{
if (std::string(srslte_get_build_info()) == "") {
if (std::string(srslte_get_build_info()).find(" ") != std::string::npos) {
return std::string(srslte_get_version());
}
return std::string(srslte_get_build_info());