Skip to content

Commit

Permalink
Merge pull request #481 from eosnetworkfoundation/check_os_release_ex…
Browse files Browse the repository at this point in the history
…ists_first_main_merge

before reading /etc/os-release make sure it exists - main
  • Loading branch information
spoonincode authored Jun 21, 2022
2 parents dfa3c92 + 9dd0ff9 commit 2342339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ endif()

set(CPACK_PACKAGE_VERSION "${VERSION_FULL}")
set(CPACK_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION_FULL}")
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.9")
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.9" AND EXISTS /etc/os-release)
#if we're doing the build on Ubuntu or RHELish, add the platform version in to the package name
file(READ /etc/os-release OS_RELEASE LIMIT 4096)
if(OS_RELEASE MATCHES "\n?ID=\"?ubuntu" AND OS_RELEASE MATCHES "\n?VERSION_ID=\"?([0-9.]+)")
Expand Down

0 comments on commit 2342339

Please sign in to comment.