small fixes

This commit is contained in:
teldra 2021-03-16 23:13:10 +01:00
parent 9c916468bf
commit 9dcf7b6cd7

View File

@ -19,11 +19,10 @@ done
input="${@}"
for i in $(seq 1 "${#input[@]}"); do
if [[ "${i}" == "1" ]]; then
if [[ "${i}" == "${#input[@]}" ]]; then
cfg+=( [diskpw]="${1}" )
else
c="$(( i - 1 ))"
users+=( [pw$c]="${input[$c]}" )
users+=( [pw$i]="${input[$i]}" )
fi
done