Skip to content

Commit

Permalink
fix: 🐛 cross-compatibility between macos and linux sed cmds (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Sep 25, 2024
1 parent 2c9d8a9 commit 3f6322b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/environment/updateVersion.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3f6322b

Please sign in to comment.