From 59243d52033403131bc3ee84e7c482504b270cbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Thu, 20 Jul 2023 15:39:19 +0800 Subject: [PATCH] fix(cmd): optimize getInfo --- app/console/commands/panel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/console/commands/panel.go b/app/console/commands/panel.go index 615f0862..0c5149fe 100644 --- a/app/console/commands/panel.go +++ b/app/console/commands/panel.go @@ -105,7 +105,7 @@ func (receiver *Panel) Handle(ctx console.Context) error { return nil } - port := tools.ExecShell("cat /www/panel/panel.conf | grep APP_PORT | awk -F '=' '{print $2}'") + port := tools.ExecShell(`cat /www/panel/panel.conf | grep APP_PORT | awk -F '=' '{print $2}' | tr -d '\n'`) color.Greenln("用户名: " + user.Username) color.Greenln("密码: " + password)