small fixes
This commit is contained in:
parent
acce41d04b
commit
b001c99549
|
@ -14,14 +14,18 @@ declare -A users=()
|
|||
source "${functions}"/functions
|
||||
|
||||
for i in $(find "${vars}" -type f); do
|
||||
echo "${i}"
|
||||
source "${i}"
|
||||
done
|
||||
cfg+=( [diskpw]="${1}" )
|
||||
|
||||
input="${@}"
|
||||
for i in $(seq 1 "${#input[@]}"); do
|
||||
[[ ! "${i}" == "1" ]] && users+=( [pw$i]="${input[$i]}" )
|
||||
if [[ "${i}" == "1" ]]; then
|
||||
cfg+=( [diskpw]="${1}" )
|
||||
else
|
||||
c="$(( i - 1 ))"
|
||||
users+=( [pw$c]="${input[$c]}" )
|
||||
fi
|
||||
done
|
||||
|
||||
export run="install"
|
||||
|
|
Loading…
Reference in New Issue
Block a user