From: Eric Bollengier Date: Fri, 3 Sep 2021 07:39:33 +0000 (+0200) Subject: regress: Add option to dummy_bsmtp to not wait for input X-Git-Tag: Beta-15.0.0~906 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aabdac4af388e37b2d31f2e1e7ee6307d1a42cd4;p=thirdparty%2Fbacula.git regress: Add option to dummy_bsmtp to not wait for input --- diff --git a/regress/scripts/dummy_bsmtp b/regress/scripts/dummy_bsmtp index 8c9f5db46..31f852093 100755 --- a/regress/scripts/dummy_bsmtp +++ b/regress/scripts/dummy_bsmtp @@ -8,8 +8,11 @@ if [ $# -ne 0 ]; then echo "$@" >> $tmp/dummy_bsmtp.out fi -while read line ; do - echo "${line}" >> $tmp/dummy_bsmtp.out -done + +if [ "$1" != /dev/null ]; then + while read line ; do + echo "${line}" >> $tmp/dummy_bsmtp.out + done +fi exit 0