tools/terraform-bundle: fix dropped error (#25475)

This commit is contained in:
Lars Lehtonen 2020-07-06 11:30:36 -07:00 committed by GitHub
parent b6c409613e
commit 3d6a321d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ func (c *PackageCommand) Run(args []string) int {
}
// symlinked tmp directories can cause odd behaviors.
workDir, err := filepath.EvalSymlinks(tmpDir)
if err != nil {
c.ui.Error(fmt.Sprintf("Error evaulating symlinks: %s", err))
return 1
}
defer os.RemoveAll(workDir)
c.ui.Info(fmt.Sprintf("Fetching Terraform %s core package...", config.Terraform.Version))