From 1e897598442eebdbb44981e2bd781be68311ab8d Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 17 Mar 2021 00:13:37 +0100 Subject: [PATCH] small fixes --- run_in_chroot.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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