]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
utils: dovecot-sysreport: Ensure error output when gdb is needed and not available
authorMarco Bettini <marco.bettini@open-xchange.com>
Mon, 2 Oct 2023 12:50:31 +0000 (12:50 +0000)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Tue, 3 Oct 2023 12:33:34 +0000 (12:33 +0000)
src/util/dovecot-sysreport

index 59afcb92642d6f445def76201a0237633d892bda..5a17385a0ed0027c9425953a02765f7c953729f5 100755 (executable)
@@ -41,7 +41,7 @@ while (( "$#" )); do
 
     -o|--core)
 
-      gdb=`which gdb`
+      gdb=$( which gdb || : )
       if [ "$gdb" = "" ]; then
         echo "gdb not found"
         exit 1