From 969d461eb9fe13aed956a39a742e20643fe6a1d2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 18 Jul 2026 10:55:49 -0700 Subject: [PATCH] Parse the free-space fields with a single read Three echo-through-awk substitutions to split one line into three variables is what read was made for. Co-Authored-By: Claude Fable 5 --- configs/airootfs/root/configurator | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/configs/airootfs/root/configurator b/configs/airootfs/root/configurator index dbdc5c3..d2cba7f 100644 --- a/configs/airootfs/root/configurator +++ b/configs/airootfs/root/configurator @@ -472,9 +472,7 @@ run_partition_install() { fi local FREE_START_B FREE_END_B FREE_SIZE_B - FREE_START_B=$(echo "$FREE_SPACE_INFO" | awk '{print $1}') - FREE_END_B=$(echo "$FREE_SPACE_INFO" | awk '{print $2}') - FREE_SIZE_B=$(echo "$FREE_SPACE_INFO" | awk '{print $3}') + read -r FREE_START_B FREE_END_B FREE_SIZE_B <<<"$FREE_SPACE_INFO" local mib=$((1024 * 1024)) gib=$((1024 * 1024 * 1024)) local ALIGN=$mib