small fixes

This commit is contained in:
teldra 2021-03-17 00:13:37 +01:00
parent 28e36c318a
commit 1e89759844
1 changed files with 1 additions and 6 deletions

View File

@ -19,15 +19,10 @@ done
input=( "${@}" )
max="${#input[@]}"
echo 0 "${input[0]}"
echo 1 "${input[1]}"
echo 2 "${input[2]}"
for i in $(seq 0 "${max}"); do
for i in $(seq 0 "$(( max - 1 ))"); do
if [[ "${i}" == "0" ]]; then
echo diskp "${input[$i]}"
cfg+=( [diskpw]="${input[$i]}" )
else
echo user "${input[$i]}"
users+=( [pw$i]="${input[$i]}" )
fi
done