]> git.sur5r.net Git - bacula/bacula/commitdiff
Eliminate possible false error message
authorKern Sibbald <kern@sibbald.com>
Sun, 11 Oct 2009 09:31:46 +0000 (11:31 +0200)
committerKern Sibbald <kern@sibbald.com>
Sun, 11 Oct 2009 09:31:46 +0000 (11:31 +0200)
regress/scripts/cleanup

index 5c53dc579b575fa49ff6f89409da028466f95cff..f8d688529b9896c54895c56ae0e5975c3309e077 100755 (executable)
@@ -17,7 +17,9 @@ find . -name "gigaslam.gif" -exec rm -f {} \;
 
 # bin directory does not always exist
 if [ -d ${bin} ] ; then
-  ${bin}/bacula stop 2>&1 >/dev/null
+  if [ -e ${bin}/bacula ] ; then
+     ${bin}/bacula stop 2>&1 >/dev/null
+  fi
   cd ${scripts}
   ./drop_bacula_tables      >/dev/null 2>&1
   ./make_bacula_tables      >/dev/null 2>&1