scripts: coccicheck: Add quotes to improve portability
authorSumera Priyadarsini <sylphrenadin@gmail.com>
Sun, 11 Oct 2020 10:28:43 +0000 (15:58 +0530)
committerJulia Lawall <Julia.Lawall@lip6.fr>
Mon, 12 Oct 2020 08:32:40 +0000 (10:32 +0200)
commit2f324dd8ab2e3d8b097f3eac6d380d1adbdbe6e6
treecec5ca72de6c23517c1449ac144f0a5c9b0c428b
parent28c185a88607bc361ec7f071b907285e2e75de1b
scripts: coccicheck: Add quotes to improve portability

While fetching the number of threads per core with lscpu,
the [:digit:] set is used for translation of digits from 0-9.
However, using [:digit:] instead of "[:digit:]" does not seem
to work uniformly for some shell types and configurations
(such as zsh).

Therefore, modify coccicheck to use double quotes around the
[:digit:] set for uniformity and better portability.

Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccicheck