From 898026b33473decf99d6c9875b566c527e5daddb Mon Sep 17 00:00:00 2001 From: Igor Shishkin Date: Mon, 24 Jun 2024 10:51:14 +0300 Subject: [PATCH] Fix shell argument substitution Signed-off-by: Igor Shishkin --- ceph/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph/cmd.go b/ceph/cmd.go index d1c9096..1a2acb8 100644 --- a/ceph/cmd.go +++ b/ceph/cmd.go @@ -14,7 +14,7 @@ func mkCommand(cephBinary string, args []string) (string, []string) { escapedArgs = append(escapedArgs, handleArg(arg)) } - outArgs := []string{"-c", strings.Join(append([]string{cephBinary}, escapedArgs...), " ")} + outArgs := []string{shellArg, strings.Join(append([]string{cephBinary}, escapedArgs...), " ")} log.Debugf("preparing command: `%s` `%#v`", outCmd, outArgs)