Fix incorrect variable assignment

This commit is contained in:
Manuel Thalmann 2023-04-01 03:32:04 +02:00
parent 2d75518a18
commit 1aadd4b9d3

View file

@ -39,9 +39,9 @@ swapSize="$(echo "$memory" | awk '{ print int(($1 / 4) + 0.5)}')";
} | fdisk "$archDisk";
disks=($(bash -c "echo $archDisk*"));
bootDisk="${disks[0]}";
swapDisk="${disks[1]}";
linuxDisk="${disks[2]}";
bootDisk="${disks[1]}";
swapDisk="${disks[2]}";
linuxDisk="${disks[3]}";
mkfs.fat -F 32 "$bootDisk";
mkswap "$swapDisk";