3 # The script checks available disk space. Returns 1 if there is no available space on the disc.
5 # Usage: checkSize <directory> <required-size>
7 # The script is the part of the SALOME PRO installation procedure.
9 # Copyright : 2003 CEA/DEN, EDF R&D
10 ####################################################################################
12 var=`df -k "$1" | awk '{print $4}'`
13 for i in $var; do var=$i; done
14 if [ "$var" -lt "$2" ]; then
15 echo "Available disk space is $var Kb"
16 echo "The necessary disk space is $2 Kb"