diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-12-26 13:02:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-07 15:20:17 +0000 |
commit | 48e79bbc8b62fa588d95b8c0741c5e6d57f096a5 (patch) | |
tree | 693f03898c9c8485f57788a2efa2aa3178b77a91 /solenv | |
parent | Accessibility: Expose keyboard short-cuts of menu entries (diff) | |
download | core-48e79bbc8b62fa588d95b8c0741c5e6d57f096a5.tar.gz core-48e79bbc8b62fa588d95b8c0741c5e6d57f096a5.zip |
Fix shellcheck -s sh warnings
Change-Id: Ib5c016f13dba4919422006527fad95e94d9a927f
Reviewed-on: https://gerrit.libreoffice.org/13656
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'solenv')
-rwxr-xr-x | solenv/bin/gdb-core-bt.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/bin/gdb-core-bt.sh b/solenv/bin/gdb-core-bt.sh index 0d21dda88ccf..dba100e2482d 100755 --- a/solenv/bin/gdb-core-bt.sh +++ b/solenv/bin/gdb-core-bt.sh @@ -15,13 +15,13 @@ EXITCODE=${3} if test -n "$(which gdb)" then - if test "$(ls "$COREDIR"/core* 2>/dev/null | wc -l)" -eq 1 + if test "$(find "$COREDIR" -name "core*" | wc -l)" -eq 1 then COREFILE=$(ls "$COREDIR"/core*) echo echo "It looks like ${EXECUTABLE} generated a core file at ${COREFILE}" echo "Backtraces:" - GDBCOMMANDFILE=`mktemp` + GDBCOMMANDFILE=$(mktemp) echo "thread apply all backtrace full" > "$GDBCOMMANDFILE" gdb -x "$GDBCOMMANDFILE" --batch "$EXECUTABLE" "$COREFILE" rm "$GDBCOMMANDFILE" |