]> git.sur5r.net Git - bacula/bacula/commitdiff
The bin directory does not always exist.
authorDan Langille <dan@langille.org>
Sun, 30 Sep 2007 02:29:41 +0000 (02:29 +0000)
committerDan Langille <dan@langille.org>
Sun, 30 Sep 2007 02:29:41 +0000 (02:29 +0000)
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

index b52f6e381dd883a4bf9a61962e1a0bc8022c9536..79c0ec2f2da067ccf82de59d206070b137b60b9b 100755 (executable)
@@ -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