From d7c40c48426841d1a811a75a7a17f73d2939f96b Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Mon, 22 Dec 2008 10:14:39 +0000 Subject: [PATCH] ebl permit an argument to run_bconsole command git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8220 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/scripts/functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/regress/scripts/functions b/regress/scripts/functions index 940b3dd1e0..f447debbbd 100644 --- a/regress/scripts/functions +++ b/regress/scripts/functions @@ -158,10 +158,11 @@ run_bacula() run_bconsole() { + file=${1:-tmp/bconcmds} if test "$debug" -eq 1 ; then - cat tmp/bconcmds | $bin/bconsole -c bin/bconsole.conf + cat $file | $bin/bconsole -c bin/bconsole.conf else - cat tmp/bconcmds | $bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null + cat $file | $bin/bconsole -c bin/bconsole.conf 2>&1 >/dev/null fi } -- 2.39.5