From: Peter Buschman Date: Thu, 16 Aug 2007 13:01:19 +0000 (+0000) Subject: Adding double-quotes around $ready variable so that spaces do not impact pattern... X-Git-Tag: Release-7.0.0~5833 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c1bd474834890e0062206937c88374956d5ad334;p=bacula%2Fbacula 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 --- 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..."