[Libreoffice-commits] core.git: solenv/bin
Julien Nabet
serval2412 at yahoo.fr
Wed Jan 7 07:20:43 PST 2015
solenv/bin/gdb-core-bt.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 48e79bbc8b62fa588d95b8c0741c5e6d57f096a5
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Fri Dec 26 13:02:38 2014 +0100
Fix shellcheck -s sh warnings
Change-Id: Ib5c016f13dba4919422006527fad95e94d9a927f
Reviewed-on: https://gerrit.libreoffice.org/13656
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/solenv/bin/gdb-core-bt.sh b/solenv/bin/gdb-core-bt.sh
index 0d21dda..dba100e 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"
More information about the Libreoffice-commits
mailing list