3 ####################################################################################
5 # Created : Thu Dec 18 12:01:00 2002
6 # Author : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
8 # Module : Installation Wizard
9 # Copyright : 2002-2007 CEA
11 # This script is the part of the SALOME installation procedure.
13 # The script checks available disk space. Returns 1 if there is no available
16 # Usage: checkSize <directory> <required-size>
18 ####################################################################################
20 if [ $# -lt 2 ] ; then
21 echo "`basename $0` : wrong parameters"
24 var=`df -k "$1" | awk '{print $4}'`
25 for i in $var; do var=$i; done
26 if [ "$var" -lt "$2" ]; then
27 echo "Available disk space is $var Kb"
28 echo "The necessary disk space is $2 Kb"