]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:tests: Fix shellcheck warning of test_wbinfo_lookuprids_cache.sh
authorAndreas Schneider <asn@samba.org>
Tue, 5 Aug 2025 09:11:10 +0000 (11:11 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 5 Aug 2025 11:50:32 +0000 (11:50 +0000)
commitdf35b106c8da2ce563301bd9f41fea0817a91996
tree937bbb5f73d291a37e39513030fdf5d08c67dc96
parent4fcfcc2dd31d1ebcaa58fe12d1c8d3a2695263ce
s3:tests: Fix shellcheck warning of test_wbinfo_lookuprids_cache.sh

In source3/script/tests/test_wbinfo_lookuprids_cache.sh line 27:
key=$("$TDBDUMP" "$cache" | grep ^key.*NDR.*/"$opnum"/ | cut -d\" -f2)
                                 ^-------------------^ SC2062 (warning):
                                 Quote the grep pattern so the shell won't
                                 interpret it.

Lets better use awk for matching the pattern.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/script/tests/test_wbinfo_lookuprids_cache.sh