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