From 6d0afa813a556c01758e084c1c6f02ebd7fb9629 Mon Sep 17 00:00:00 2001 From: wyyalt Date: Mon, 11 Dec 2023 11:17:43 +0800 Subject: [PATCH] =?UTF-8?q?bugfix:=20=20gsectl=20=E8=84=9A=E6=9C=AC=20RC?= =?UTF-8?q?=5FLOCAL=5FFILE=20=E8=AF=86=E5=88=AB=E4=BF=AE=E5=A4=8D=20(close?= =?UTF-8?q?d=20#2016)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script_tools/gsectl/agent/linux/gsectl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script_tools/gsectl/agent/linux/gsectl b/script_tools/gsectl/agent/linux/gsectl index ca1a99d7a..699ac9f85 100755 --- a/script_tools/gsectl/agent/linux/gsectl +++ b/script_tools/gsectl/agent/linux/gsectl @@ -491,7 +491,7 @@ get_os_type () { check_rc_file () { get_os_type - if [ -f $RC_LOCAL_FILE ]; then + if [ -f "$RC_LOCAL_FILE" ]; then return 0 elif [ -f "/etc/rc.d/rc.local" ]; then RC_LOCAL_FILE="/etc/rc.d/rc.local"