=== modified file 'zsh-functions/confz_containers_init' --- old/zsh-functions/confz_containers_init 2022-06-23 00:39:32 +0000 +++ new/zsh-functions/confz_containers_init 2022-06-23 00:34:44 +0000 @@ -1058,25 +1058,11 @@ fi zstat -L -H stat_info $profile_dir done - [[ -d $profile_dir ]] || \ - die "Could not find profile directory: ${(qqq)profile_dir}" - - local manifest_file=$profile_dir/manifest.nix - zstat -L -H stat_info $manifest_file - # while it's a symlink - while (( $stat_info[mode] >> 12 == 10 )); do - if [[ $stat_info[link] == /* ]]; then - manifest_file=$root$stat_info[link] - else - manifest_file=${manifest_file:h}/$stat_info[link] - fi - zstat -L -H stat_info $manifest_file - done - [[ -f $profile_dir/manifest.nix ]] || \ - die "Could not find manifest.nix file: ${(qqq)manifest_file}" + die "Could not find manifest.nix inside ${(qqq)profile_dir}" local -a world=( "${(@f)$( - grep -o 'outPath = "[^"]*"' $manifest_file \ + grep -o 'outPath = "[^"]*"' \ + $profile_dir/manifest.nix \ | uniq | sed 's|^outPath = "/nix/store/[^-]*-||;s|"$||' )}" ) local -a missing