small fixes
This commit is contained in:
parent
ece3ecb54a
commit
32c2122032
|
@ -18,11 +18,14 @@ for i in $(find "${vars}" -type f); do
|
||||||
done
|
done
|
||||||
|
|
||||||
input="${@}"
|
input="${@}"
|
||||||
|
max="${#input[@]}"
|
||||||
echo "${input[@]}"
|
echo "${input[@]}"
|
||||||
for i in $(seq 1 "${#input[@]}"); do
|
for i in $(seq 1 "${max}"); do
|
||||||
if [[ "${i}" == "${#input[@]}" ]]; then
|
if [[ "${i}" == "${#input[@]}" ]]; then
|
||||||
cfg+=( [diskpw]="${1}" )
|
echo diskp "${input[$i]}"
|
||||||
|
cfg+=( [diskpw]="${input[$i]}" )
|
||||||
else
|
else
|
||||||
|
echo user "${input[$i]}"
|
||||||
users+=( [pw$i]="${input[$i]}" )
|
users+=( [pw$i]="${input[$i]}" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue