Skip to content

Commit

Permalink
Merge pull request #15 from janritter/fix/empty-remove-not-working
Browse files Browse the repository at this point in the history
fix: Removal of old tfstate failed when file was not existent
  • Loading branch information
janritter authored Oct 7, 2019
2 parents 6483c0d + e1f109d commit 3111e1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helper/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func RemoveDotTerraformFolder(in interface{}) error {
}

if valueSet == true && shouldRemove == true {
err = os.Remove(".terraform/terraform.tfstate")
err = os.RemoveAll(".terraform/terraform.tfstate")
if err != nil {
color.Red(err.Error())
return err
Expand Down

0 comments on commit 3111e1e

Please sign in to comment.