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