From 3a771e7ee035a613dd9cb19b2ed7020e3348d508 Mon Sep 17 00:00:00 2001 From: adminroot Date: Tue, 4 Nov 2025 08:21:38 -0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20setup.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index 1ed05df..dddbc1a 100644 --- a/setup.sh +++ b/setup.sh @@ -24,6 +24,7 @@ for choice in $choices; do echo "输入Swap内存大小(MB) [默认: 2048]: " read -t 30 -p "> " swap_size if [ $? -ne 0 ] || [ -z "$swap_size" ]; then + swap_size=2048 echo -e "\n使用默认值: ${swap_size}MB" fi dd if=/dev/zero of=/swapfile bs=1M count=$swap_size