On Sun, 2008-08-24 at 14:30 +0100, Chris Lamb wrote:
> Patch attached.

-if [[ $fails > `expr $TEST_PING_COUNT - 1` ]]; then
+if [ $fails > `expr $TEST_PING_COUNT - 1` ]; then

Unfortunately the fix there is slightly broken - it creates a file with
a numeric filename rather than comparing the two numbers; yay for the
extensions in [[. :-/

To get the same behaviour as the original you need

if [ $fails -gt `expr $TEST_PING_COUNT - 1` ]; then

Regards,

Adam




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to