From ee47565095072c727e8b635e2571412bed56ff8a Mon Sep 17 00:00:00 2001 From: LamGC Date: Sat, 28 Jan 2023 20:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20crontab=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=A3=80=E6=B5=8B=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf-sshd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf-sshd.sh b/conf-sshd.sh index a48c87c..90c7618 100644 --- a/conf-sshd.sh +++ b/conf-sshd.sh @@ -163,7 +163,7 @@ update_sshkeys # 检查是否指定了 --cron if [ $(has_param "-c" "--cron") == "true" ]; then # 检查 Crontab 是否已安装 - if [ $(command -v crontab) == "" ]; then + if [ "$(command -v crontab)" == "" ]; then if [ $(id -u) -eq 0 ]; then echo "The crontab is not installed, and the script is executed as a root user, so it will be installed." if [ -f /etc/redhat-release ]; then