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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user