From a24e6a260ca14047ea90ef6fd2b258323e38100e Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 24 Nov 2006 08:33:31 +0000 Subject: [PATCH] Fix bug : checkSize() should check the number of parameters given in the command line --- config_files/checkSize.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config_files/checkSize.sh b/config_files/checkSize.sh index ae5bb79..55d505a 100755 --- a/config_files/checkSize.sh +++ b/config_files/checkSize.sh @@ -17,6 +17,10 @@ # #################################################################################### +if [ $# -lt 2 ] ; then + echo "`basename $0` : wrong parameters" + exit 1 +fi var=`df -k "$1" | awk '{print $4}'` for i in $var; do var=$i; done if [ "$var" -lt "$2" ]; then -- 2.39.2