ia64/xen-unstable

changeset 8222:9b842cdbe0de

Use test ([) instead of expr to compare integers.
expr $int1 '<' $int2 seems to be broken on some shells.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Sun Dec 04 00:49:51 2005 +0100 (2005-12-04)
parents bbef89ec44b8
children 36fe58be57de
files tools/examples/xen-hotplug-common.sh
line diff
     1.1 --- a/tools/examples/xen-hotplug-common.sh	Sat Dec 03 21:53:01 2005 +0100
     1.2 +++ b/tools/examples/xen-hotplug-common.sh	Sun Dec 04 00:49:51 2005 +0100
     1.3 @@ -119,7 +119,7 @@ release_lock()
     1.4    local owner=$(_lock_owner "$lockdir")
     1.5    local retries=0
     1.6  
     1.7 -  while expr $retries '<' $LOCK_RETRIES
     1.8 +  while [ $retries -lt $LOCK_RETRIES ]
     1.9    do
    1.10      mkdir "$lockdir" && trap "release_lock $1; sigerr" ERR &&
    1.11        _update_lock_info "$lockdir" && return
    1.12 @@ -131,7 +131,7 @@ release_lock()
    1.13        retries=0
    1.14      fi
    1.15  
    1.16 -    if expr $retries '>' $LOCK_SPINNING_RETRIES
    1.17 +    if [ $retries -gt $LOCK_SPINNING_RETRIES ]
    1.18      then
    1.19        sleep $LOCK_SLEEPTIME
    1.20      else