提前测试iso/dd镜像是否有效

This commit is contained in:
bin456789
2023-06-04 22:10:16 +08:00
parent 1b8fe2637f
commit 17fc7af9a8
2 changed files with 35 additions and 3 deletions

View File

@ -91,8 +91,7 @@ if [ "$distro" = "alpine" ]; then
exec reboot
elif [ "$distro" = "dd" ]; then
filetype=$(echo $ddimg | awk -F. '{print $NF}')
case "$filetype" in
case "$ddimg_type" in
gz) prog=gzip ;;
xz) prog=xz ;;
esac