From c37398da407f8b6726ed82f39d09f6d009b60ded Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Tue, 10 Nov 2020 04:25:22 +0000 Subject: [PATCH] Minor update --- debi.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/debi.sh b/debi.sh index e97c9d5..7ce6953 100755 --- a/debi.sh +++ b/debi.sh @@ -416,7 +416,10 @@ EOF echo "d-i partman/default_filesystem string $filesystem" | $save_preseed - [ -z "$efi" ] && efi=false && [ -d /sys/firmware/efi ] && efi=true + if [ -z "$efi" ]; then + efi=false + [ -d /sys/firmware/efi ] && efi=true + fi $save_preseed << 'EOF' d-i partman-auto/expert_recipe string \ @@ -516,7 +519,10 @@ EOF save_grub_cfg='cat' if [ "$dry_run" != true ]; then - [ -z "$architecture" ] && architecture=amd64 && _command_exists dpkg && architecture="$(dpkg --print-architecture)" + if [ -z "$architecture" ]; then + architecture=amd64 + _command_exists dpkg && architecture="$(dpkg --print-architecture)" + fi base_url="$mirror_protocol://$mirror_host$mirror_directory/dists/$suite/main/installer-$architecture/current/images/netboot/debian-installer/$architecture"