From a5efad93b4f3001cb788e1cc9ce218074b61f174 Mon Sep 17 00:00:00 2001 From: jaskaransarkaria Date: Wed, 25 Sep 2024 11:13:13 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20cross-compatibility=20bet?= =?UTF-8?q?ween=20macos=20and=20linux=20sed=20cmds?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/environment/updateVersion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/environment/updateVersion.go b/pkg/environment/updateVersion.go index 32797b12..e5370ab3 100644 --- a/pkg/environment/updateVersion.go +++ b/pkg/environment/updateVersion.go @@ -40,7 +40,7 @@ func updateVersion(moduleName, actualDbVersion, terraformDbVersion, tfDir string escapedTfDbVersion := "\"" + splitTfDbVersion[0] + "\\." + splitTfDbVersion[1] + "\"" - sedCmd := exec.Command("/bin/sh", "-c", "sed -i '' -e '"+dbMatch[1]+"s/"+escapedTfDbVersion+"/\""+actualDbVersion+"\"/g' "+string(fileName)) + sedCmd := exec.Command("/bin/sh", "-c", "sed -i'' -e '"+dbMatch[1]+"s/"+escapedTfDbVersion+"/\""+actualDbVersion+"\"/g' "+string(fileName)) sedCmd.Dir = tfDir