Skip to content

Commit

Permalink
Update build_images.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Feb 25, 2024
1 parent a54769e commit 72a2a13
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build_images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,13 @@ build_or_list_images() {
fi
fi
fi
if [[ "$run_funct" == "gentoo" ]]; then
# 强制设置架构名字
if [[ "$run_funct" == "gentoo" || "$run_funct" == "debian" || "$run_funct" == "ubuntu" ]]; then
[ "${arch}" = "amd64" ] && arch="x86_64"
elif [[ "$run_funct" == "fedora" || "$run_funct" == "openeuler" || "$run_funct" == "opensuse" || "$run_funct" == "alpine" || "$run_funct" == "oracle" || "$run_funct" == "archlinux" ]]; then
[ "${arch}" = "aarch64" ] && arch="arm64"
elif [[ "$run_funct" == "almalinux" || "$run_funct" == "centos" || "$run_funct" == "rockylinux" ]]; then
[ "${arch}" = "aarch64" ] && arch="arm64"
elif [[ "$run_funct" == "debian" || "$run_funct" == "ubuntu" ]]; then
[ "${arch}" = "amd64" ] && arch="x86_64"
fi
ls
if [ -f rootfs.tar.xz ]; then
Expand All @@ -220,9 +219,10 @@ build_or_list_images() {
fi
ls
else
# 强制设置架构名字
if [[ "$run_funct" == "gentoo" || "$run_funct" == "debian" || "$run_funct" == "ubuntu" ]]; then
[ "${arch}" = "amd64" ] && arch="x86_64"
elif [[ "$run_funct" == "fedora" || "$run_funct" == "openeuler" || "$run_funct" == "opensuse" ]]; then
elif [[ "$run_funct" == "fedora" || "$run_funct" == "openeuler" || "$run_funct" == "opensuse" || "$run_funct" == "alpine" || "$run_funct" == "oracle" || "$run_funct" == "archlinux" ]]; then
[ "${arch}" = "aarch64" ] && arch="arm64"
elif [[ "$run_funct" == "almalinux" || "$run_funct" == "centos" || "$run_funct" == "rockylinux" ]]; then
[ "${arch}" = "aarch64" ] && arch="arm64"
Expand Down

0 comments on commit 72a2a13

Please sign in to comment.