diff options
author | Tom de Vries <tdevries@suse.de> | 2024-06-15 08:10:44 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2024-06-15 08:10:44 +0200 |
commit | 750fc33e4eb049a57cfd3594ee8e51677eb3368a (patch) | |
tree | 92e0e5ca1e6a584e00c7acfc494d12fe31542b04 /gdb/testsuite/lib | |
parent | 382cac8881270437414bb6b6bd5b7b15761e3000 (diff) | |
download | binutils-750fc33e4eb049a57cfd3594ee8e51677eb3368a.zip binutils-750fc33e4eb049a57cfd3594ee8e51677eb3368a.tar.gz binutils-750fc33e4eb049a57cfd3594ee8e51677eb3368a.tar.bz2 |
[gdb/testsuite] Clean up lib/dg-add-core-file-count.sh
Fix shellcheck warnings in script lib/dg-add-core-file-count.sh.
Tested on x86_64-linux.
Approved-by: Kevin Buettner <kevinb@redhat.com>
Diffstat (limited to 'gdb/testsuite/lib')
-rwxr-xr-x | gdb/testsuite/lib/dg-add-core-file-count.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/dg-add-core-file-count.sh b/gdb/testsuite/lib/dg-add-core-file-count.sh index 45cf0cf..b4cb6b9 100755 --- a/gdb/testsuite/lib/dg-add-core-file-count.sh +++ b/gdb/testsuite/lib/dg-add-core-file-count.sh @@ -26,7 +26,7 @@ # find, wc, etc. Spawning a subshell isn't strictly needed, but it's # clearer. The "*core*" pattern is this lax in order to find all of # "core", "core.PID", "core.<program>.PID", "<program>.core", etc. -cores=$(set -- *core*; [ $# -eq 1 -a ! -e "$1" ] && shift; echo $#) +cores=$(set -- *core*; [ $# -eq 1 ] && [ ! -e "$1" ] && shift; echo $#) # If no cores found, then don't add our summary line. if [ "$cores" -eq "0" ]; then |