From 0bd1ed2e26e223024f90c1fef9b86c89e9a93239 Mon Sep 17 00:00:00 2001
From: Malte Bauch <malte.bauch@stud.h-da.de>
Date: Wed, 13 Sep 2023 16:12:12 +0200
Subject: [PATCH] Remove unnecessary args in plugin cmd

---
 controller/nucleus/plugin.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controller/nucleus/plugin.go b/controller/nucleus/plugin.go
index 1709217e4..b409e6252 100644
--- a/controller/nucleus/plugin.go
+++ b/controller/nucleus/plugin.go
@@ -31,7 +31,7 @@ func NewPlugin(id uuid.UUID, execPath string) (*Plugin, error) {
 	client := hcplugin.NewClient(&hcplugin.ClientConfig{
 		HandshakeConfig:  shared.Handshake,
 		Plugins:          shared.PluginMap,
-		Cmd:              exec.Command("sh", "-c", filepath.Join(execPath, util.PluginExecutableName)),
+		Cmd:              exec.Command(filepath.Join(execPath, util.PluginExecutableName)),
 		AllowedProtocols: []hcplugin.Protocol{hcplugin.ProtocolGRPC},
 	})
 
-- 
GitLab