Salome HOME
Fix regression in ParaView installation script: invalid path to the patch
[tools/install.git] / config_files / diskSpace.sh
1 #!/bin/bash -noprofile
2
3 ####################################################################################
4 #  File      : diskSpace.sh
5 #  Created   : Mon Jun 25 17:09:00 2007
6 #  Author    : Vadim SANDLER, Open CASCADE SAS (vadim.sandler@opencascade.com)
7 #  Project   : SALOME
8 #  Module    : Installation Wizard
9 #  Copyright : 2002-2014 CEA
10 #
11 #  This script is the part of the SALOME installation procedure.
12 #
13 #  The script returns available disk space.
14 #
15 #  Usage: diskSpace <directory>
16 #
17 ####################################################################################
18
19 if [ $# -lt 1 ] ; then
20     echo "`basename $0` : wrong parameters"
21     exit 1
22 fi
23 var=`df -Pk "$1" | awk '{print $4}' | grep "[0-9]\+"`
24 #for i in ${var}; do var=${i}; done
25 echo ${ar}
26 exit 0