small fixes
This commit is contained in:
parent
9c916468bf
commit
9dcf7b6cd7
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user