Re: [PATCH 1/2] tools: kernel-chktaint: Fix bashism, simplify code

2024-06-21 Thread Randy Dunlap
On 6/18/24 2:06 AM, Petr Vorel wrote: > '==' is bashism, '=' needs to be used for comparison. > With this fix script can work on systems where the default shell is > dash, busybox ash or any other strictly POSIX compatible shell. > > While at it, also improve: > * remove "x" in the comparison (

Re: [PATCH 1/2] tools: kernel-chktaint: Fix bashism, simplify code

2024-06-20 Thread Thorsten Leemhuis
On 18.06.24 11:06, Petr Vorel wrote: > '==' is bashism, '=' needs to be used for comparison. > With this fix script can work on systems where the default shell is > dash, busybox ash or any other strictly POSIX compatible shell. > > While at it, also improve: > * remove "x" in the comparison (not

[PATCH 1/2] tools: kernel-chktaint: Fix bashism, simplify code

2024-06-18 Thread Petr Vorel
'==' is bashism, '=' needs to be used for comparison. With this fix script can work on systems where the default shell is dash, busybox ash or any other strictly POSIX compatible shell. While at it, also improve: * remove "x" in the comparison (not needed for decades) * use $# for checking number