unmount aktualisiert
Mit "-z" statt "-u" soll das Aushängen schneller und sicherer funktionieren.
This commit is contained in:
@ -53,12 +53,13 @@ unmount_remote() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
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
|
if ! is_mounted "$remote"; then
|
||||||
gum style --foreground 10 "✅ ${remote} wurde erfolgreich ungemountet."
|
gum style --foreground 10 "✅ ${remote} wurde erfolgreich getrennt."
|
||||||
else
|
else
|
||||||
gum style --foreground 9 "❌ Fehler beim Unmounten von ${remote}."
|
gum style --foreground 9 "❌ Fehler beim Trennen von ${remote}."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user