commit 01aeacee032fdac99b070ab58a8e94509252bd1f
parent 3d40681f9e9a4efcbd95461ff062e342fc1620ae
Author: Jan Pobříslo <ccx@te2000.cz>
Date: Tue, 23 Nov 2021 19:23:12 +0000
Fix variable reference.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/zsh-functions/confz_containers_init b/zsh-functions/confz_containers_init
@@ -131,7 +131,7 @@ confz_container_user_check() {
local -a entry
local line name
</etc/passwd while IFS= read line; do
- entry=( "${${(s.:.)entry}[@]}" )
+ entry=( "${${(s.:.)line}[@]}" )
# name:password:UID:GID:GECOS:directory:shell
# 1 :2 :3 :4 :5 :6 :7
if [[ $entry[1] == $vars[user_name] ]]; then