From: Marco Bettini Date: Mon, 2 Oct 2023 12:50:31 +0000 (+0000) Subject: utils: dovecot-sysreport: Ensure error output when gdb is needed and not available X-Git-Tag: 2.4.0~2570 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54520a7a116b4765fa45865f0d4bd21c225bd4e6;p=thirdparty%2Fdovecot%2Fcore.git utils: dovecot-sysreport: Ensure error output when gdb is needed and not available --- diff --git a/src/util/dovecot-sysreport b/src/util/dovecot-sysreport index 59afcb9264..5a17385a0e 100755 --- a/src/util/dovecot-sysreport +++ b/src/util/dovecot-sysreport @@ -41,7 +41,7 @@ while (( "$#" )); do -o|--core) - gdb=`which gdb` + gdb=$( which gdb || : ) if [ "$gdb" = "" ]; then echo "gdb not found" exit 1