commit 3ff87557bfec051aaa29c15802bab85483f06eef parent eefbc8dfdecdc08848aa6629f121a73187c45da4 Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Wed, 13 Feb 2019 08:23:10 +0100 Fix error handling for mdadm --detail Diffstat:
| M | zsh-functions/confz_fs_init | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/zsh-functions/confz_fs_init b/zsh-functions/confz_fs_init @@ -378,10 +378,10 @@ confz_mdraid_check() { if [[ -b $vars[md_device] ]]; then out=$( mdadm --detail $vars[md_device] ) ret=$? - case ret in + case $ret in (0) ;; # (1) return 1;; - (*) die "$0: mdadm --detail ${(qqq)vars[md_device]} returned $?";; + (*) die "$0: mdadm --detail ${(qqq)vars[md_device]} returned $ret";; esac seen_header=0 while read line; do