From 2826dc7b03f63966b59e55a1f6225da735970c30 Mon Sep 17 00:00:00 2001 From: xiaoz Date: Tue, 22 Dec 2020 16:13:32 +0800 Subject: [PATCH] fix bug --- set_swap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set_swap.sh b/set_swap.sh index 09da289..6817a71 100644 --- a/set_swap.sh +++ b/set_swap.sh @@ -32,7 +32,7 @@ function set_swap(){ } #判断当前是否开启了虚拟内存 -if [ swapon -s ] +if swapon -s then echo 'You have already set up swap, there is no need to repeat the settings.' exit