summaryrefslogtreecommitdiffstats
path: root/linhes/linhes-system/checkXFSfrag.sh
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2023-12-10 18:51:49 (GMT)
committerBritney Fransen <brfransen@gmail.com>2023-12-10 18:51:49 (GMT)
commite6410e3f26209cec73b80b4b038aaa2e2ed0dacf (patch)
tree2833bd0ea9d248d28967f099e5290ca2422fe29d /linhes/linhes-system/checkXFSfrag.sh
parent7ebf4bfa7f580aa15cb842ed3b9d43187b47ec2b (diff)
downloadlinhes_pkgbuild-e6410e3f26209cec73b80b4b038aaa2e2ed0dacf.zip
linhes_pkgbuild-e6410e3f26209cec73b80b4b038aaa2e2ed0dacf.tar.gz
linhes_pkgbuild-e6410e3f26209cec73b80b4b038aaa2e2ed0dacf.tar.bz2
linhes-system: checkXFSfrag.sh: add bracket to if
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.