small fixes
This commit is contained in:
parent
28e36c318a
commit
1e89759844
|
@ -19,15 +19,10 @@ done
|
||||||
|
|
||||||
input=( "${@}" )
|
input=( "${@}" )
|
||||||
max="${#input[@]}"
|
max="${#input[@]}"
|
||||||
echo 0 "${input[0]}"
|
for i in $(seq 0 "$(( max - 1 ))"); do
|
||||||
echo 1 "${input[1]}"
|
|
||||||
echo 2 "${input[2]}"
|
|
||||||
for i in $(seq 0 "${max}"); do
|
|
||||||
if [[ "${i}" == "0" ]]; then
|
if [[ "${i}" == "0" ]]; then
|
||||||
echo diskp "${input[$i]}"
|
|
||||||
cfg+=( [diskpw]="${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