From 0c6a4ff105dd129ef859d430f62716805e7cc297 Mon Sep 17 00:00:00 2001 From: ProfessionalUwU Date: Wed, 29 Jan 2025 18:11:14 +0100 Subject: [PATCH] Revert some changes --- legacy/update | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/update b/legacy/update index 64ac6b8..5975bf9 100755 --- a/legacy/update +++ b/legacy/update @@ -61,7 +61,7 @@ check_for_valid_backup_location() { } check_nfs_mount() { - if [ $(findmnt -rno SOURCE,TARGET,FSTYPE "$1" | grep -q nfs) -ne 0 ]; then + if ! findmnt -rno SOURCE,TARGET,FSTYPE "$1" | grep -q nfs; then echo -e "${IYELLOW}$1 is not an active NFS mount.${NO_COLOR}" read -p "Do you want to continue without an active NFS mount? [y/N] " input case $input in