From bc3736a5a42668287fa7a6629523ccf97034e94a Mon Sep 17 00:00:00 2001 From: sneak Date: Sun, 16 Feb 2020 08:11:34 -0800 Subject: [PATCH] try to correct di-dist arg --- mirror/syncubuntu.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mirror/syncubuntu.sh b/mirror/syncubuntu.sh index c81617b..b7ab65d 100755 --- a/mirror/syncubuntu.sh +++ b/mirror/syncubuntu.sh @@ -18,6 +18,10 @@ fi DONE=0 +DIDIST="$( + echo "$UBUNTU_MIRROR_PROJECTS" | tr "," "\n" | grep -v "\-" | tr "\n" "," +)" + while [[ $DONE -eq 0 ]]; do debmirror \ -a ${UBUNTU_MIRROR_ARCHITECTURES} \ @@ -25,7 +29,7 @@ while [[ $DONE -eq 0 ]]; do -h ${UBUNTU_MIRROR_UPSTREAM} \ -d ${UBUNTU_MIRROR_PROJECTS} \ $SOURCEOPT \ - --di-dist=dists \ + --di-dist="$DIDIST" \ --di-arch=arches \ --ignore-small-errors \ -r /ubuntu \