diff options
author | n5m <72841454+n5m@users.noreply.github.com> | 2021-02-15 13:21:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 14:21:41 +0100 |
commit | 55722fe04d67b443aeebc19bff46c3872b80f2fd (patch) | |
tree | 95a45bf3701e5d0e106800b5300c1eae474d1776 | |
parent | 35bd39a9d0eef1396b2f6a562430ec63e36b7921 (diff) | |
download | Nim-55722fe04d67b443aeebc19bff46c3872b80f2fd.tar.gz |
avoid doAssert on contents of osReleaseFile (#16955)
-rw-r--r-- | lib/posix/posix_utils.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/posix/posix_utils.nim b/lib/posix/posix_utils.nim index 7fd8b1fc9..c53051b27 100644 --- a/lib/posix/posix_utils.nim +++ b/lib/posix/posix_utils.nim @@ -120,7 +120,7 @@ proc osReleaseFile*(): Config {.since: (1, 5).} = import parsecfg when defined(linux): let data = osReleaseFile() - doAssert data.getSectionValue("", "NAME").len > 0 ## the data is up to each distro. + echo "OS name: ", data.getSectionValue("", "NAME") ## the data is up to each distro. # We do not use a {.strdefine.} because Standard says it *must* be that path. for osReleaseFile in ["/etc/os-release", "/usr/lib/os-release"]: |