zsh:funcs:crypt-*mount: Set pipe_fail

Set `pipe_fail` so that if for example the `grep` fails while getting
`$mount_point`, the function returns early.
This commit is contained in:
2022-01-30 00:37:13 +01:00
parent 4c9bb36d33
commit 271f5bcf25

View File

@@ -253,7 +253,7 @@ safe-remove() {
} }
crypt-mount() { crypt-mount() {
emulate -L zsh -o err_return emulate -L zsh -o err_return -o pipe_fail
[[ $# -gt 0 ]] [[ $# -gt 0 ]]
[[ -b "$1" ]] [[ -b "$1" ]]
@@ -278,7 +278,7 @@ crypt-mount() {
} }
crypt-umount() { crypt-umount() {
emulate -L zsh -o err_return emulate -L zsh -o err_return -o pipe_fail
[[ $# -gt 0 ]] [[ $# -gt 0 ]]
[[ -b "$1" ]] [[ -b "$1" ]]