confz

git mirror of https://ccx.te2000.cz/bzr/confz
git clone https://ccx.te2000.cz/git/confz
Log | Files | Refs

commit 0991cc6cf884cd09de78a03f0f6bf1e258a81808
parent c31c42aaaf59aac9ef04304ed01b7ff7b3eaab41
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Mon, 20 Nov 2017 15:57:32 +0100

Fix indices.
Diffstat:
Mzsh-functions/confz_fs_init | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/zsh-functions/confz_fs_init b/zsh-functions/confz_fs_init @@ -142,9 +142,9 @@ confz_disk_id_check() { (( $#found )) || die "$0: found no matching devices" (( $#found % 3 )) && die "$0: internal error parsing device information" [[ $#found -ne 3 ]] && die "$0: found too many matching devices" - vars[device]=$found[0] - vars[device_model]=$found[1] - vars[serial_number]=$found[2] + vars[device]=$found[1] + vars[device_model]=$found[2] + vars[serial_number]=$found[3] } # check for DOS-style MBR on device