From c9dae67531cf99d97a3130b5b2e2fb04636370a3 Mon Sep 17 00:00:00 2001
From: zhangxiaoyu <zhangxiaoyu58@huawei.com>
Date: Wed, 8 Jun 2022 15:42:00 +0800
Subject: [PATCH 24/24] modify dependency install command

Signed-off-by: zhangxiaoyu <zhangxiaoyu58@huawei.com>
---
 pkg/utils/dependency/dependency.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/utils/dependency/dependency.go b/pkg/utils/dependency/dependency.go
index ce4a7ca..3250579 100644
--- a/pkg/utils/dependency/dependency.go
+++ b/pkg/utils/dependency/dependency.go
@@ -163,7 +163,7 @@ func (dp *dependencyPkg) Install(r runner.Runner) error {
 		join += s.Name + "* "
 	}
 
-	if _, err := r.RunCommand(fmt.Sprintf("sudo -E /bin/sh -c \"cd %s && %s %s",
+	if _, err := r.RunCommand(fmt.Sprintf("sudo -E /bin/sh -c \"cd %s && %s %s\"",
 		dp.srcPath, pManager.installCommand, join)); err != nil {
 		return fmt.Errorf("%s failed: %v", pManager.installCommand, err)
 	}
@@ -186,7 +186,7 @@ func (dp *dependencyPkg) Remove(r runner.Runner) error {
 		join += s.Name + "* "
 	}
 
-	if _, err := r.RunCommand(fmt.Sprintf("sudo -E /bin/sh -c \"cd %s && %s %s",
+	if _, err := r.RunCommand(fmt.Sprintf("sudo -E /bin/sh -c \"cd %s && %s %s\"",
 		dp.srcPath, pManager.removeCommand, join)); err != nil {
 		return fmt.Errorf("%s remove failed: %v", pManager.removeCommand, err)
 	}
-- 
2.25.1

