From b2775dc1d83e0570055fd9d3615a33d2edda5f38 Mon Sep 17 00:00:00 2001 From: Dan Langille Date: Sun, 30 Sep 2007 02:29:41 +0000 Subject: [PATCH] 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 --- regress/scripts/cleanup | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) 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 -- 2.39.5