From 37fc82d7e15f5cb09ddf12d7de348c22bb6d6722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 12 Aug 2021 15:41:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/ServerManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/ServerManager.php b/Server/ServerManager.php index 20f30c63..058eff8c 100644 --- a/Server/ServerManager.php +++ b/Server/ServerManager.php @@ -309,7 +309,7 @@ class ServerManager private function portIsAlready($port): bool|string { if (!Kiri::getPlatform()->isLinux()) { - exec('lsof -i :' . $port . ' | grep -i "LISTEN" | awk "{print $2}"', $output); + exec("lsof -i :" . $port . " | grep -i 'LISTEN' | awk '{print $2}'", $output); if (empty($output)) return false; $output = explode(PHP_EOL, $output[0]); return $output[0];