From: vsr Date: Fri, 24 Nov 2006 08:33:31 +0000 (+0000) Subject: Fix bug : checkSize() should check the number of parameters given in the command... X-Git-Tag: V_3_2_4~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a24e6a260ca14047ea90ef6fd2b258323e38100e;p=tools%2Finstall.git Fix bug : checkSize() should check the number of parameters given in the command line --- 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