linux-info.eclass: get_localversion, do not call 'ls'
authorMichał Górny <mgorny@gentoo.org>
Thu, 8 Mar 2018 15:48:39 +0000 (16:48 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 9 Jul 2018 16:54:45 +0000 (18:54 +0200)
commit64d475cac5a2e4ca9a63a3f158c6f6ee745cb9a0
tree6bb5139f7a8d03d9ddb4d414a373e67b28394a28
parent7fd74e89b28f22520479610d885eb986777b6711
linux-info.eclass: get_localversion, do not call 'ls'

Use bash array to perform a safe filename glob instead of calling 'ls'.
Also, use nullglob to cleanly handle no matches instead of silencing
errors.
eclass/linux-info.eclass