bashism in tools/check-docs.sh
Using checkbashisms on that script, I get:
$ checkbashisms tools/check-docs.sh
possible bashism in tools/check-docs.sh line 16 (brace expansion):
grep -lE "$(sed -n 's/^[\t ]*\(.*_get_type\);/\1/p' $SOURCEDIR''libnm/libnm.ver |xargs echo |sed 's/ /|/g')" $SOURCEDIR''libnm{,-core}/*.h |
And indeed, this test fails if e.g. /bin/sh points at dash (as is the case on Debian/Ubuntu):
$ ./tools/check-docs.sh
grep: libnm{,-core}/*.h: No such file or directory
The obvious solution is to use /bin/bash
as shebang, but as the fix is simple in this case, I would prefer if the script would remain a posix shell script:
Just replace libnm{,-core}/*.h
with libnm/*.h libnm-core/*.h