summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/checkXFSfrag.sh
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/linhes-system/checkXFSfrag.sh')
-rwxr-xr-xlinhes/linhes-system/checkXFSfrag.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/linhes/linhes-system/checkXFSfrag.sh b/linhes/linhes-system/checkXFSfrag.sh
index 12c4549..f3c71da 100755
--- a/linhes/linhes-system/checkXFSfrag.sh
+++ b/linhes/linhes-system/checkXFSfrag.sh
@@ -54,7 +54,7 @@ do
then
percentage=`$xfsdb -c frag -r ${i}|grep factor|cut -f 7 --delim=" "`
percent2=`$e $percentage|cut -f 1 --delim=.`
- if [ "$percent2" -gt "$pctmax" ]
+ if [[ "$percent2" -gt "$pctmax" ]]
then
$e "${i} is $percentage fragmented. Running defragment on ${i}."
# Only uncomment one of the following two lines.