small fixes

This commit is contained in:
teldra 2021-03-16 22:46:00 +01:00
parent acce41d04b
commit b001c99549
1 changed files with 6 additions and 2 deletions

View File

@ -14,14 +14,18 @@ declare -A users=()
source "${functions}"/functions
for i in $(find "${vars}" -type f); do
echo "${i}"
source "${i}"
done
cfg+=( [diskpw]="${1}" )
input="${@}"
for i in $(seq 1 "${#input[@]}"); do
[[ ! "${i}" == "1" ]] && users+=( [pw$i]="${input[$i]}" )
if [[ "${i}" == "1" ]]; then
cfg+=( [diskpw]="${1}" )
else
c="$(( i - 1 ))"
users+=( [pw$c]="${input[$c]}" )
fi
done
export run="install"