From bbb3e07beded4a7beac0d46364aeaee1eb1cb317 Mon Sep 17 00:00:00 2001 From: Nathan Straz Date: Mon, 19 May 2003 20:54:36 +0000 Subject: [PATCH] lsunit isn't always set when running _log_sunit, so give it a default value. --- 016 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/016 b/016 index 75de0114..49546041 100755 --- a/016 +++ b/016 @@ -5,7 +5,7 @@ # test end of log overwrite bug #796141 # #----------------------------------------------------------------------- -# Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved. +# Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of version 2 of the GNU General Public License as @@ -139,7 +139,7 @@ _log_head() _log_sunit() { - if [ $lsunit -eq 0 ]; then + if [ ${lsunit:-0} -eq 0 ]; then echo $dbsize else expr $lsunit \* $dbsize -- 2.30.2