diff --git a/rclone_mount.sh b/rclone_mount.sh index e2a822f..148f7f1 100644 --- a/rclone_mount.sh +++ b/rclone_mount.sh @@ -53,12 +53,13 @@ unmount_remote() { return 0 fi - gum spin --title "Unmounting ${remote}..." -- fusermount -u "$mount_path" + gum spin --title "Unmounting ${remote}..." -- fusermount -z "$mount_path" + sleep 1 # kurz warten bis der lazy unmount sich gesetzt hat if ! is_mounted "$remote"; then - gum style --foreground 10 "✅ ${remote} wurde erfolgreich ungemountet." + gum style --foreground 10 "✅ ${remote} wurde erfolgreich getrennt." else - gum style --foreground 9 "❌ Fehler beim Unmounten von ${remote}." + gum style --foreground 9 "❌ Fehler beim Trennen von ${remote}." return 1 fi }