small fixes

This commit is contained in:
teldra 2021-03-16 23:58:43 +01:00
parent ece3ecb54a
commit 32c2122032
1 changed files with 5 additions and 2 deletions

View File

@ -18,11 +18,14 @@ for i in $(find "${vars}" -type f); do
done
input="${@}"
max="${#input[@]}"
echo "${input[@]}"
for i in $(seq 1 "${#input[@]}"); do
for i in $(seq 1 "${max}"); do
if [[ "${i}" == "${#input[@]}" ]]; then
cfg+=( [diskpw]="${1}" )
echo diskp "${input[$i]}"
cfg+=( [diskpw]="${input[$i]}" )
else
echo user "${input[$i]}"
users+=( [pw$i]="${input[$i]}" )
fi
done