aboutsummaryrefslogtreecommitdiff
path: root/custom/lib/disk.sh
diff options
context:
space:
mode:
Diffstat (limited to 'custom/lib/disk.sh')
-rw-r--r--custom/lib/disk.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/custom/lib/disk.sh b/custom/lib/disk.sh
index 38c6dd9..2e7deb3 100644
--- a/custom/lib/disk.sh
+++ b/custom/lib/disk.sh
@@ -111,7 +111,8 @@ format_efi_partitions() {
local first=true
for disk in "${disks[@]}"; do
- local efi=$(get_efi_partition "$disk")
+ local efi
+ efi=$(get_efi_partition "$disk")
if $first; then
format_efi "$efi" "EFI"
first=false
@@ -162,7 +163,8 @@ select_disks() {
# Extract just the device paths (remove size/model info)
SELECTED_DISKS=()
while IFS= read -r line; do
- local disk=$(echo "$line" | cut -d' ' -f1)
+ local disk
+ disk=$(echo "$line" | cut -d' ' -f1)
SELECTED_DISKS+=("$disk")
done <<< "$selected"