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="${@}" input="${@}"
for i in $(seq 1 "${#input[@]}"); do for i in $(seq 1 "${#input[@]}"); do
if [[ "${i}" == "1" ]]; then if [[ "${i}" == "${#input[@]}" ]]; then
cfg+=( [diskpw]="${1}" ) cfg+=( [diskpw]="${1}" )
else else
c="$(( i - 1 ))" users+=( [pw$i]="${input[$i]}" )
users+=( [pw$c]="${input[$c]}" )
fi fi
done done