Salome HOME
Update for Cent OS
[tools/install.git] / config_files / checkSize.sh
index ae5bb7968c3ff734b4ea1f05ddbe65e4f9ead0fe..bc921c632213251b6b07e20eb21b7b1cb595cad1 100755 (executable)
@@ -6,7 +6,7 @@
 #  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
 #  Project   : SALOME
 #  Module    : Installation Wizard
-#  Copyright : 2002-2006 CEA
+#  Copyright : 2002-2008 CEA
 #
 #  This script is the part of the SALOME installation procedure.
 #
 #
 ####################################################################################
 
-var=`df -k "$1" | awk '{print $4}'`
+if [ $# -lt 2 ] ; then
+    echo "`basename $0` : wrong parameters"
+    exit 1
+fi
+var=`df -Pk "$1" | awk '{print $4}'`
 for i in $var; do var=$i; done
 if [ "$var" -lt "$2" ]; then
    echo "Available disk space is $var Kb"