From abf83fd9ddd90a0d41e2e858309760b1a4469260 Mon Sep 17 00:00:00 2001 From: DragonSlayer_14 Date: Sat, 8 Mar 2025 11:00:41 +0100 Subject: [PATCH] =?UTF-8?q?Feat:=20F=C3=BCgt=20eine=20Pr=C3=BCfung=20hinzu?= =?UTF-8?q?,=20ob=20ein=20Dateisystem=20als=20WebDav=20gemountet=20ist.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Utility/IsWebdavMounted.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Utility/IsWebdavMounted.sh diff --git a/Utility/IsWebdavMounted.sh b/Utility/IsWebdavMounted.sh new file mode 100644 index 0000000..b9f5cc3 --- /dev/null +++ b/Utility/IsWebdavMounted.sh @@ -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 +}