]> git.sur5r.net Git - bacula/bacula/commitdiff
Adding double-quotes around $ready variable so that spaces do not impact pattern...
authorPeter Buschman <peterb@iotk.com>
Thu, 16 Aug 2007 13:01:19 +0000 (13:01 +0000)
committerPeter Buschman <peterb@iotk.com>
Thu, 16 Aug 2007 13:01:19 +0000 (13:01 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5360 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/mtx-changer.in

index 59f3d42335339978bd7049729ed8523c2d1a67a4..0b475a672dff6f769c16203169aed6fdeec7609a 100644 (file)
@@ -108,7 +108,7 @@ make_temp_file() {
 wait_for_drive() {
   i=0 
   while [ $i -le 300 ]; do  # Wait max 300 seconds
-    if mt -f $1 status | grep ${ready} >/dev/null 2>&1; then
+    if mt -f $1 status | grep "${ready}" >/dev/null 2>&1; then
       break
     fi
     debug "Device $1 - not ready, retrying..."