From c1bd474834890e0062206937c88374956d5ad334 Mon Sep 17 00:00:00 2001 From: Peter Buschman Date: Thu, 16 Aug 2007 13:01:19 +0000 Subject: [PATCH] Adding double-quotes around $ready variable so that spaces do not impact pattern matching. This was causing drive ready detection to fail on at least Solaris. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5360 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/scripts/mtx-changer.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/scripts/mtx-changer.in b/bacula/scripts/mtx-changer.in index 59f3d42335..0b475a672d 100644 --- a/bacula/scripts/mtx-changer.in +++ b/bacula/scripts/mtx-changer.in @@ -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..." -- 2.39.5