提交 c9737760 作者: Matt Bell 提交者: Juan Batiz-Benet

main: Fixed logical error in remote/local check

上级 81b36809
......@@ -206,7 +206,8 @@ func callCommand(req cmds.Request, root *cmds.Command) (cmds.Response, error) {
if err != nil {
return nil, err
}
remote := !isLocal(req.Command()) && !found || !local
remote := !isLocal(req.Command()) && (!found || !local)
log.Info("Checking if daemon is running...")
if remote && daemon.Locked(req.Context().ConfigRoot) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论