From adb0f7c8f87c5cd7c75224751f28df8abf51c283 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