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-7.0.0~3576 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d7c40c48426841d1a811a75a7a17f73d2939f96b;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 }