]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Fix bug : checkSize() should check the number of parameters given in the command...
authorvsr <vsr@opencascade.com>
Fri, 24 Nov 2006 08:33:31 +0000 (08:33 +0000)
committervsr <vsr@opencascade.com>
Fri, 24 Nov 2006 08:33:31 +0000 (08:33 +0000)
config_files/checkSize.sh

index ae5bb7968c3ff734b4ea1f05ddbe65e4f9ead0fe..55d505acdc87ae1ea950b3f84bbbab3f6e8e0e6d 100755 (executable)
 #
 ####################################################################################
 
+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