From: Eric Bollengier Date: Mon, 22 Dec 2008 10:14:39 +0000 (+0000) Subject: ebl permit an argument to run_bconsole command X-Git-Tag: Release-3.0.0~424 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=adb0f7c8f87c5cd7c75224751f28df8abf51c283;p=bacula%2Fbacula 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 --- 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 }