fix build string for builds without valid .git folder

master
Andre Puschmann 6 years ago
parent 777f5b22dc
commit a436baed39

@ -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());

@ -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());

@ -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());

Loading…
Cancel
Save