diff --git a/run_in_chroot.sh b/run_in_chroot.sh index 77991dd..baa89b6 100755 --- a/run_in_chroot.sh +++ b/run_in_chroot.sh @@ -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