[gdb/contrib] Fix shellcheck warnings in spellcheck.sh
commitf5e259f32f011dc563b3da9e279acaee3aafba8e
authorTom de Vries <tdevries@suse.de>
Tue, 19 Nov 2024 11:32:40 +0000 (19 12:32 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 19 Nov 2024 11:32:40 +0000 (19 12:32 +0100)
treeb4dc0a63335725f397bccd211baa5b64ddf6fcce
parentcb45bd59481353217ebf18d67c6b013ab2d2f263
[gdb/contrib] Fix shellcheck warnings in spellcheck.sh

Fix shellcheck warnings in spellcheck.sh, found using shellcheck v0.10.0.

Ran shellcheck v0.10.0 (on a system with shellcheck version 0.8.0) using this
command from an RFC patch [1]:
...
$ ./gdb/contrib/pre-commit-shellcheck.sh ./gdb/contrib/spellcheck.sh
...

Tested on x86_64-linux

[1] https://sourceware.org/pipermail/gdb-patches/2024-November/213400.html
gdb/contrib/spellcheck.sh