From: Kern Sibbald Date: Sat, 20 Dec 2003 16:47:02 +0000 (+0000) Subject: Error check arg to config X-Git-Tag: Release-1.34.0~244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d9020de59676a52ca6e7df9a7afa308c6a704329;p=bacula%2Fbacula Error check arg to config git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@912 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/config b/regress/config index 860dfcc405..4bc4f52703 100755 --- a/regress/config +++ b/regress/config @@ -2,4 +2,8 @@ # # First argument is expected to be a user's configuration file # +if ! test -e $1 ; then + echo "Arg1 must specify a config file (e.g. prototype.conf)" + exit 1 +fi sed -e "/@CONFIG@/r $1" -e "s/@CONFIG@//" Makefile.in >Makefile