Skip to content

Commit

Permalink
fix build string for builds without valid .git folder
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepuschmann committed Jan 22, 2019
1 parent 777f5b2 commit a436bae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion srsenb/src/enb.cc
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion srsepc/src/main.cc
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion srsue/src/ue_base.cc
Expand Up @@ -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());
Expand Down

0 comments on commit a436bae

Please sign in to comment.