diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-05-14 15:11:51 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-10-15 18:22:48 +0200 |
commit | 9537f8de82c9916420b1eee0957c041fe4709f26 (patch) | |
tree | 2d81130a42d0150759b1d9d2511c39f9ee0d7db2 /cmake | |
parent | 2141358f6297e39771e602dc3f4750443ba1d0ee (diff) |
Fix: OS detection
Change-Id: Idcf5e85bfeab4edf1dbf52b6a0e3470ad350f939
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/common.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake index c6853ea..2f3bcdc 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -42,7 +42,7 @@ endif() # Used to package .deb set(OS_RELEASE_PATH "${BUILD_ENV_SYSROOT}/etc/os-release") if(EXISTS ${OS_RELEASE_PATH}) - execute_process(COMMAND bash "-c" "grep -E '^ID(_LIKE)?=' ${OS_RELEASE_PATH} | tail -n 1" + execute_process(COMMAND bash "-c" "grep -E '^ID(_LIKE)?=' /etc/os-release | tail -n 1 | sed -r 's:.*=\"(.*)\":\\1:' | awk '{print $1}'" OUTPUT_VARIABLE TMP_OSRELEASE ) |