linux-info.eclass: avoid lexicographical compare on numbers, bug #705248
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 22 May 2020 18:53:44 +0000 (19:53 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 23 May 2020 22:59:04 +0000 (23:59 +0100)
commitaa1d259decdfd73a49e0c49e88a8ec5675453266
treeb377d276f6febf29c116b499c5f4bbc4030f8687
parentad8356621454a2bd99d4ac3e7bc7c48ae4625944
linux-info.eclass: avoid lexicographical compare on numbers, bug #705248

Originally found in bug #705240 as:

```
  error=0
  ...
  if [[ ${error} > 0 ]]; then
  ...
```

'>' are string comparisons. They are benign in this case, but let's
be consistent and use integer comparison.

Closes: https://bugs.gentoo.org/705248
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/linux-info.eclass