small fixes

This commit is contained in:
teldra 2021-03-17 00:10:21 +01:00
parent 851e04713a
commit 28e36c318a
2 changed files with 3 additions and 3 deletions

View File

@ -42,6 +42,6 @@ for i in $(seq 1 "${users[amount]}"); do
pw+=( "${users[pw$i]}" )
done
chroot "${dest}" "/tmp/installer/run_in_chroot.sh" "${pw[@]}" "${cfg[diskpw]}"
chroot "${dest}" "/tmp/installer/run_in_chroot.sh" "${cfg[diskpw]}" "${pw[@]}"
umounter "${dest}"

View File

@ -22,8 +22,8 @@ max="${#input[@]}"
echo 0 "${input[0]}"
echo 1 "${input[1]}"
echo 2 "${input[2]}"
for i in $(seq 1 "${max}"); do
if [[ "${i}" == "${#input[@]}" ]]; then
for i in $(seq 0 "${max}"); do
if [[ "${i}" == "0" ]]; then
echo diskp "${input[$i]}"
cfg+=( [diskpw]="${input[$i]}" )
else