mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 16:36:17 +02:00
fix getOS
This commit is contained in:
parent
f05ff228fa
commit
ed5a54e4ab
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ static std::string getOS()
|
|||
#endif
|
||||
if (os.empty())
|
||||
{
|
||||
os = trim_copy(execGetOutput("cat /etc/os-release /etc/openwrt_release |grep -e PRETTY_NAME -e DISTRIB_DESCRIPTION"));
|
||||
os = trim_copy(execGetOutput("grep /etc/os-release /etc/openwrt_release -e PRETTY_NAME -e DISTRIB_DESCRIPTION"));
|
||||
if (os.find("=") != std::string::npos)
|
||||
{
|
||||
os = trim_copy(os.substr(os.find("=") + 1));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue