mirror of
https://github.com/johndoe6345789/SparkOS.git
synced 2026-04-24 13:34:56 +00:00
Cache BusyBox version to avoid redundant command execution
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user