Salome HOME
projects
/
tools
/
install.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0b4b6b
)
Fix bug : checkSize() should check the number of parameters given in the command...
author
vsr
<vsr@opencascade.com>
Fri, 24 Nov 2006 08:33:31 +0000
(08:33 +0000)
committer
vsr
<vsr@opencascade.com>
Fri, 24 Nov 2006 08:33:31 +0000
(08:33 +0000)
config_files/checkSize.sh
patch
|
blob
|
history
diff --git
a/config_files/checkSize.sh
b/config_files/checkSize.sh
index ae5bb7968c3ff734b4ea1f05ddbe65e4f9ead0fe..55d505acdc87ae1ea950b3f84bbbab3f6e8e0e6d 100755
(executable)
--- a/
config_files/checkSize.sh
+++ b/
config_files/checkSize.sh
@@
-17,6
+17,10
@@
#
####################################################################################
+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