Feat: Fügt eine Prüfung hinzu, ob ein Dateisystem als WebDav gemountet ist.

This commit is contained in:
DragonSlayer_14 2025-03-08 11:00:41 +01:00
parent f7156e5cdf
commit abf83fd9dd

View File

@ -0,0 +1,10 @@
#!/bin/bash
is_webdav_mounted() {
local mount_point="$1"
if mount | grep -q "on $mount_point type davfs"; then
return 0 # WebDAV ist gemountet
else
return 1 # WebDAV ist nicht gemountet
fi
}