summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bultel <thierry.bultel@iot.bzh>2018-09-18 13:39:04 +0200
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-09-20 11:51:33 +0000
commitd639f428a4608a3afa3cf129e8116f484a189d9a (patch)
treed106991e087094fcb0440ff7dfd9dc24117cfe8e
parentfbccebe3c48089c2595cf43d1345675cee068ca0 (diff)
common.cmake: fixed erroneous search path for os-releaseflounder_6.0.0flounder/6.0.06.0.0
Change-Id: I20eb2c342e33d838b9f8c80b7ec93c32794b4eeb Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh> (cherry picked from commit 3dc85ecc9693a3a4af6d1143507f56b6800d523e)
-rw-r--r--cmake/common.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake
index 8e57b26..f553ae0 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)?=' /etc/os-release | tail -n 1"
+ execute_process(COMMAND bash "-c" "grep -E '^ID(_LIKE)?=' ${OS_RELEASE_PATH} | tail -n 1"
OUTPUT_VARIABLE TMP_OSRELEASE
)