From: Dan Langille Date: Sun, 30 Sep 2007 02:29:41 +0000 (+0000) Subject: The bin directory does not always exist. X-Git-Tag: Release-7.0.0~5571 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=090f492a20f1c4bf5886f7806ae1d38c91ec6a81;p=bacula%2Fbacula The bin directory does not always exist. Put an if around code that depends upon it. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5689 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/regress/scripts/cleanup b/regress/scripts/cleanup index b52f6e381d..79c0ec2f2d 100755 --- a/regress/scripts/cleanup +++ b/regress/scripts/cleanup @@ -11,9 +11,14 @@ rm -rf working/*.bsr rm -rf /tmp/disk-changer find . -name "gigaslam.gif" -exec rm -f {} \; -bin/bacula stop 2>&1 >/dev/null -cd bin -./drop_bacula_tables >/dev/null 2>&1 -./make_bacula_tables >/dev/null 2>&1 -./grant_bacula_privileges >/dev/null 2>&1 -cd .. + +# bin directory does not always exist +if [ -d bin ] +then + bin/bacula stop 2>&1 >/dev/null + cd bin + ./drop_bacula_tables >/dev/null 2>&1 + ./make_bacula_tables >/dev/null 2>&1 + ./grant_bacula_privileges >/dev/null 2>&1 + cd .. +fi \ No newline at end of file