From 6601b0ef3560e69125a7bfd5ab3a5e0ba5adf61b Mon Sep 17 00:00:00 2001 From: delta Date: Wed, 1 Sep 2021 00:38:54 +0800 Subject: [PATCH] fixed for loop on initialization --- scripts/reprepro-import.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/reprepro-import.sh b/scripts/reprepro-import.sh index 541fd46..57c2d94 100644 --- a/scripts/reprepro-import.sh +++ b/scripts/reprepro-import.sh @@ -15,9 +15,9 @@ cd .. # Check for EASYREPO_SUITES to create symlinks EASYREPO_SUITES="${EASYREPO_SUITES:-unstable,sid/stable,buster/testing,bullseye}" -for $k in $(echo ${EASYREPO_SUITES} | sed "s/\// /g") +for k in $(echo ${EASYREPO_SUITES} | sed "s/\// /g") do - g=($(echo $i | sed "s/\,/ /g")) + g=($(echo $k | sed "s/\,/ /g")) reprepro -V --basedir $BASEDIR --outdir $OUTDIR createsymlinks ${g[0]} done