zsh:funcs:crypt-umount: Fix typo

Remove the basename of `$mount_point` as this is the actual symlink name
in `~/mounts/`.
This commit is contained in:
2022-01-30 00:12:48 +01:00
parent e9c4d7f608
commit 4623688fa8

View File

@@ -305,8 +305,8 @@ crypt-umount() {
| grep -F /dev/mapper/"$name" \ | grep -F /dev/mapper/"$name" \
| awk '{ print $2; }' | awk '{ print $2; }'
)" )"
rm ~/mounts/"$name" && rmdir --ignore-fail-on-non-empty ~/mounts/ \ rm ~/mounts/"${mount_point:t}" && rmdir --ignore-fail-on-non-empty ~/mounts/ \
|| echo "~/mounts/$name did not exist" || echo "~/mounts/${mount_point:t} did not exist"
} }
if (( $+commands[trash] )); then if (( $+commands[trash] )); then