]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: Add option to dummy_bsmtp to not wait for input
authorEric Bollengier <eric@baculasystems.com>
Fri, 3 Sep 2021 07:39:33 +0000 (09:39 +0200)
committerEric Bollengier <eric@baculasystems.com>
Fri, 30 Jun 2023 16:33:45 +0000 (18:33 +0200)
regress/scripts/dummy_bsmtp

index 8c9f5db46ed70ca305a9928e81461107756e5bd8..31f852093bd6db4db053485dad884ee1736cb35f 100755 (executable)
@@ -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