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-3.0.0~2419 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b2775dc1d83e0570055fd9d3615a33d2edda5f38;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