From 5552d9cae5e27257432a5699f87c5d605c79909b Mon Sep 17 00:00:00 2001 From: Kay0u Date: Thu, 17 Jun 2021 15:39:09 +0200 Subject: [PATCH] same --- image_builder | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/image_builder b/image_builder index 5d76511..56c74f3 100755 --- a/image_builder +++ b/image_builder @@ -175,27 +175,21 @@ function from_stable_to_another_version() for DIST in "buster" # Add new debian version here do - for YNH_BRANCH in "stable" "testing" "unstable" + for ARCH in "$(get_arch)" do - for ARCH in "$(get_arch)" + rebuild_base_lxc "stable" $DIST $ARCH + + for YNH_BRANCH in "testing" "unstable" do - if [ "$YNH_BRANCH" == "stable" ] - then - rebuild_base_lxc $YNH_BRANCH $DIST $ARCH - else - from_stable_to_another_version $YNH_BRANCH $DIST $ARCH - fi + from_stable_to_another_version $YNH_BRANCH $DIST $ARCH done done done for DIST in "bullseye" # Add new debian version here do - for YNH_BRANCH in "unstable" + for ARCH in "$(get_arch)" do - for ARCH in "$(get_arch)" - do - rebuild_base_lxc $YNH_BRANCH $DIST $ARCH - done + rebuild_base_lxc "unstable" $DIST $ARCH done done