From 52d7581e58cae2e10e45738e6f01909aee3d018d Mon Sep 17 00:00:00 2001 From: bin456789 Date: Tue, 1 Aug 2023 21:55:54 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E6=94=AF=E6=8C=81=20gzip=20=E5=92=8C?= =?UTF-8?q?=20xz=20=E6=A0=BC=E5=BC=8F=E4=BA=91=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index f150541..c5e3da4 100644 --- a/trans.sh +++ b/trans.sh @@ -1127,12 +1127,13 @@ if [ "$distro" != "alpine" ]; then add_community_repo fi +# shellcheck disable=SC2154 if [ "$distro" = "alpine" ]; then install_alpine elif [ "$distro" = "dd" ]; then install_dd elif is_use_cloud_image; then - if [ "$distro" = "fedora" ]; then + if [ "$img_type" = "xz" ] || [ "$img_type" = "gzip" ]; then install_cloud_image_by_dd else create_part