From 7f01c17ef3c524a973d889f817ec97ce8c141448 Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Thu, 22 Apr 2021 08:45:57 +0200 Subject: [PATCH] dist/tools/avarice/debug.sh: less noise Redirect also stderr to /dev/null when trying to detect the correct binary name for GDB for AVR. --- dist/tools/avarice/debug.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tools/avarice/debug.sh b/dist/tools/avarice/debug.sh index d56cbc4dc8..e2bbbaa5e5 100755 --- a/dist/tools/avarice/debug.sh +++ b/dist/tools/avarice/debug.sh @@ -3,9 +3,9 @@ # The setsid command is needed so that Ctrl+C in GDB doesn't kill avarice : ${SETSID:=setsid} -if avr-gdb -v > /dev/null; then +if avr-gdb -v &> /dev/null; then GDB=avr-gdb -elif gdb-multiarch -v > /dev/null; then +elif gdb-multiarch -v &> /dev/null; then GDB=gdb-multiarch else echo "Couldn't find multiarch GDB or AVR GDB. Check \$PATH."