Skip to content

Commit

Permalink
fixed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-koo committed Jan 7, 2025
1 parent 007927e commit 7282b55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/providers/terraform/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func CreateConfigFile(dir string, terraformCloudHost string, terraformCloudToken

func copyFile(srcPath string, dstPath string) error {
// Ensure that the srcPath is canonical for the host OS
src = filepath.Clean(srcPath)
srcPath = filepath.Clean(srcPath)

src, err := os.Open(srcPath)
if err != nil {
Expand All @@ -202,7 +202,7 @@ func copyFile(srcPath string, dstPath string) error {
defer src.Close()

// Ensure that the dstPath is canonical for the host OS
dst = filepath.Clean(dstPath)
dstPath = filepath.Clean(dstPath)

dst, err := os.Create(dstPath)
if err != nil {
Expand Down

0 comments on commit 7282b55

Please sign in to comment.