From e6410e3f26209cec73b80b4b038aaa2e2ed0dacf Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Sun, 10 Dec 2023 13:51:49 -0500 Subject: linhes-system: checkXFSfrag.sh: add bracket to if --- linhes/linhes-system/PKGBUILD | 4 ++-- linhes/linhes-system/checkXFSfrag.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD index 91773a0..9153f32 100755 --- a/linhes/linhes-system/PKGBUILD +++ b/linhes/linhes-system/PKGBUILD @@ -1,6 +1,6 @@ pkgname=linhes-system pkgver=9.0.0 -pkgrel=65 +pkgrel=66 arch=('x86_64') #install=$pkgname.install pkgdesc="Everything that makes LinHES a system" @@ -30,7 +30,7 @@ sha256sums=('525bfe29b63d3ec5a17a32fa29745e24070020490c3f5b6dd6b03250348fb324' '1ec3c266cafb0c1b231e88df88b97fec1a1b7465b5d95a0c1e64c8cb727b7c47' '97fe9e851c782fa9f85c5b69b110ccff2817dd4fa2a6d9ff6ee225dc558677e4' 'ff261f41efec8a9963f9f59100cbe75f015028a2ed3a863ce0cb473f2ebb7b76' - 'c7a2b2de44645e3a905b39d7411e5b8b27b60bd2944533fd4655c3b175755da1' + '8b54c31b8efde3917f603c5307bebb0a2a00239ad9a983c2f5d8120003256449' 'ae34515e144830f424d3bd3f6b1b446892d62beed20bca6f0fb19b0bbb779f27' '5e6d128f879b0fe7c1a190cccd75d4e5d00afc161f3bc9e92ffa2d87242cc9df' 'ca9ea52197837f7a562cea46f042fc0b3e988a37f73ae6d2ea481ee73ebc7097' 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. -- cgit v0.12