From daa62541faf9ff2c387af3d85f13acf63f9431c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 19:39:56 +0000 Subject: [PATCH] Cache BusyBox version to avoid redundant command execution Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- scripts/test.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index 515a323..d457293 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -10,7 +10,9 @@ if command -v busybox >/dev/null 2>&1; then echo "✓ BusyBox is installed" echo "" echo "BusyBox version:" - busybox | head -n 1 + # Store version for reuse in summary + BUSYBOX_VERSION=$(busybox | head -n 1) + echo "$BUSYBOX_VERSION" echo "" echo "BusyBox location:" which busybox @@ -73,7 +75,7 @@ echo "✓ SparkOS is ready for testing!" echo "================================" echo "" echo "Summary:" -echo " - BusyBox: $(busybox | head -n 1)" +echo " - BusyBox: $BUSYBOX_VERSION" echo " - Init: Custom SparkOS init system" echo " - Shell: BusyBox sh (/bin/sh)" echo " - Networking: BusyBox udhcpc, ip, ping, wget"