Feat: Fügt eine Prüfung hinzu, ob ein Dateisystem als WebDav gemountet ist.
This commit is contained in:
parent
f7156e5cdf
commit
abf83fd9dd
10
Utility/IsWebdavMounted.sh
Normal file
10
Utility/IsWebdavMounted.sh
Normal 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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user