common.cmake: fixed erroneous search path for os-release 83/16683/2 6.90.0 guppy/6.90.0 guppy_6.90.0
authorThierry Bultel <thierry.bultel@iot.bzh>
Tue, 18 Sep 2018 11:39:04 +0000 (13:39 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 20 Sep 2018 11:51:26 +0000 (11:51 +0000)
Change-Id: I20eb2c342e33d838b9f8c80b7ec93c32794b4eeb
Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
cmake/common.cmake

index 8e57b26..f553ae0 100644 (file)
@@ -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
        )