small fixes
This commit is contained in:
parent
851e04713a
commit
28e36c318a
2
main.sh
2
main.sh
|
@ -42,6 +42,6 @@ for i in $(seq 1 "${users[amount]}"); do
|
||||||
pw+=( "${users[pw$i]}" )
|
pw+=( "${users[pw$i]}" )
|
||||||
done
|
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}"
|
umounter "${dest}"
|
||||||
|
|
|
@ -22,8 +22,8 @@ max="${#input[@]}"
|
||||||
echo 0 "${input[0]}"
|
echo 0 "${input[0]}"
|
||||||
echo 1 "${input[1]}"
|
echo 1 "${input[1]}"
|
||||||
echo 2 "${input[2]}"
|
echo 2 "${input[2]}"
|
||||||
for i in $(seq 1 "${max}"); do
|
for i in $(seq 0 "${max}"); do
|
||||||
if [[ "${i}" == "${#input[@]}" ]]; then
|
if [[ "${i}" == "0" ]]; then
|
||||||
echo diskp "${input[$i]}"
|
echo diskp "${input[$i]}"
|
||||||
cfg+=( [diskpw]="${input[$i]}" )
|
cfg+=( [diskpw]="${input[$i]}" )
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user