]> git.sur5r.net Git - bacula/bacula/commitdiff
Error check arg to config
authorKern Sibbald <kern@sibbald.com>
Sat, 20 Dec 2003 16:47:02 +0000 (16:47 +0000)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Dec 2003 16:47:02 +0000 (16:47 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@912 91ce42f0-d328-0410-95d8-f526ca767f89

regress/config

index 860dfcc4052e6a175f9d10a1011860cb6fe1e7b5..4bc4f52703bf00626b0cd9a7d835b274f25732a9 100755 (executable)
@@ -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