commit c8de49a556ac86bce18b010b6a1c40ae2c90264b parent fba5b71ab51bba833f24f3719c88e058637311dd Author: Jan Pobrislo <ccx@webprojekty.cz> Date: Thu, 2 Apr 2020 18:03:29 +0200 Store major and minor part of mdev in global parameters. Diffstat:
| M | zsh-functions/confz_fileset_init | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/zsh-functions/confz_fileset_init b/zsh-functions/confz_fileset_init @@ -8,7 +8,7 @@ zmodload -F zsh/stat b:zstat zmodload -m -F zsh/files b:zf_\* typeset -g -A fileset_stat_cache fileset_stat_cur fileset_ftypes fileset_typenames -typeset -g fileset_stat_cur fileset_stat_next_id fileset_stat_cur_type fileset_stat_cur_perm +typeset -g fileset_stat_cur fileset_stat_next_id fileset_stat_cur_type fileset_stat_cur_perm fileset_stat_cur_major fileset_stat_cur_minor fileset_ftypes=( # convert hex type to a word C S # unix socket @@ -173,8 +173,8 @@ confz_fs_device_check() { fileset_stat $vars[filename] && \ [[ $fileset_stat_cur_type == $vars[device_type] ]] && \ - [[ $fileset_stat_cur[major] == $vars[major] ]] && \ - [[ $fileset_stat_cur[minor] == $vars[minor] ]] + [[ $fileset_stat_cur_major == $vars[major] ]] && \ + [[ $fileset_stat_cur_minor == $vars[minor] ]] } confz_fs_device_do() {