]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
regress: tweak dummy_bsmtp, make it simpler
authorMichal Rakowski <michal.rakowski@baculasystems.com>
Thu, 5 Aug 2021 06:15:23 +0000 (08:15 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:03:03 +0000 (09:03 +0100)
regress/scripts/dummy_bsmtp

index f51378a4a2f0484beb993f5a1fbd407b5cd2653d..631b3f6dd7b587e4124c5eafa7e5a9c874c0efa3 100755 (executable)
@@ -5,12 +5,11 @@
 #
 . scripts/functions
 
-while test 1 ; do
-  read a
-  echo "${a}" >> $tmp/dummy_bsmtp.out
-  if test $? != 0; then
-    exit 0
-  fi
+if [ $# -ne 0 ]; then
+   echo "$@" >> $tmp/dummy_bsmtp.out
+fi
+while read line ; do
+   echo "${line}" >> $tmp/dummy_bsmtp.out
 done
 
 exit 0