Add nfs check #28

Merged
ProfessionalUwU merged 3 commits from feature/nfs-check into main 2025-01-29 18:13:39 +01:00
Showing only changes of commit 0c6a4ff105 - Show all commits

View File

@ -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