small fixes
This commit is contained in:
parent
28e36c318a
commit
1e89759844
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user