13 Feb
2017
13 Feb
'17
15:50
On 2017-01-28 09:48, Stefan Seyfried wrote:
Am 28.01.2017 um 09:46 schrieb Stefan Seyfried:
I don't think $kmpmodules will ever be empty in this code flow.
I just read up on nullglob and it will indeed be empty, so disregard the previous comment.
It will be empty in the no-kmps case, but it can expand to several words in the kmps case, resulting in a syntax error. A more robust check is to have a function with a loop like check_kmps() { for f in "$builddir"/*-kmp-modules; do if test -e "$f"; then return fi done ... shortcut ... } Also, the "cat |" is unnecessary. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org