From 04fe6adc38cec681b4652d8d2a80725b68c167aa Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 22 Oct 2025 21:34:31 -0400
Subject: linhes-system: lh_system_backup_job: fix mountpoint detection

---
 linhes/linhes-system/PKGBUILD             | 4 ++--
 linhes/linhes-system/lh_system_backup_job | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/linhes/linhes-system/PKGBUILD b/linhes/linhes-system/PKGBUILD
index baebef8..5df6abd 100755
--- a/linhes/linhes-system/PKGBUILD
+++ b/linhes/linhes-system/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=linhes-system
 pkgver=9.0.0
-pkgrel=96
+pkgrel=97
 arch=('x86_64')
 #install=$pkgname.install
 pkgdesc="Everything that makes LinHES a system"
@@ -39,7 +39,7 @@ sha256sums=('e6eaa2fb4819fa60cb05b4d2e7328d2914af3a73028a735ec4d56e7ece33ecc0'
             '87875d9e5f5ce18208f419698ce69b6bcbcd08955a57a4a13940e715af58b787'
             '192bfff1b8d46e0ebb969618847d9993aba3b1b578053c8d701dad9f9e758f86'
             'a523388ffdc6f30f2dd2ef4803b21bded8a35bfded499dc66b786adec71840a3'
-            '6ea7f807a29631e33629da14e7ca6481310f0416c5d6f8fb415a76fa90fb9b76'
+            'eec03b722449a55e589eb79aade87e9b2a964e82b8fe23723016b640a079de2a'
             '91bdec992bb2c933e15625c181f2195c402060b879168ebf35944cb064c904b9'
             '5cacfdd02833e5a3130d765573e772e6bd5030336ba86239c5e4db5ffa36fc69'
             'd51253c207d3315997d7122cb774c6d0fc38975c33e66bf416f0b1b95cf86e5b'
diff --git a/linhes/linhes-system/lh_system_backup_job b/linhes/linhes-system/lh_system_backup_job
index 6d16596..e45d6ea 100755
--- a/linhes/linhes-system/lh_system_backup_job
+++ b/linhes/linhes-system/lh_system_backup_job
@@ -27,7 +27,7 @@ do
     fi
 done
 
-if [ `mountpoint -q $BACKUPDISK 2> /dev/null` ]; then
+if ! mountpoint -q "$BACKUPDISK"; then
     echo "    The system doesn't have a second drive. Backup skipped."
     exit $backup_status
 fi
-- 
cgit v0.12

