errors while rescanPorts after upgrading to 3.4

Joe Marcus Clarke marcus at marcuscom.com
Sun Nov 13 13:54:28 EST 2011


On 11/13/11 1:49 PM, Dmitry Morozovsky wrote:
> On Sun, 13 Nov 2011, Joe Marcus Clarke wrote:
>
>>> BTW, there i a little glitch leading to
>>>
>>> [: -eq: unexpected operator
>>>
>>> error.  Running tc through sh -x I found it's around tinderLoc function:
>>>
>>> + tinderLoc jail 8-amd64
>>> + type=jail
>>> + what=8-amd64
>>> + echo /usr/local/tb/jails/8-amd64
>>> + _dstloc=/usr/local/tb/jails/8-amd64/src
>>> + [ -n /usr/local/tb/jails/8-amd64/src ]
>>> + df
>>> + awk '$NF == mtpt { print $NF }' mtpt=/usr/local/tb/jails/8-amd64/src
>>> + mtpt=''
>>> + [ -n '' ]
>>> + return 0
>>> + [ -n '' ]
>>> + [ -eq 1 ]
>>> [: -eq: unexpected operator
>>
>> But it's not in tinderLoc as tinderLoc returns.  A lot of things call
>> tinderLoc.  What is the full trace?
>
> Ah I see. Script log till the error attached
>
>

Do you have any local code in the tinderlib.sh cleanupMounts() function? 
  I do not see how this log could happen.

Joe

-- 
PGP Key : http://www.marcuscom.com/pgp.asc


More information about the tinderbox-list mailing list