Skip to content

Commit

Permalink
Merge branch 'master' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed May 20, 2019
2 parents d993963 + 0b7dea1 commit 15253c0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/common_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ func createFile(path string) {

func createDirIfNotExist(dir string) {
if _, err := os.Stat(dir); os.IsNotExist(err) {
log.Printf("Creating directory for teraform: %v", dir)
log.Printf("Creating directory for terraform: %v", dir)
err = os.MkdirAll(dir, 0755)
if err != nil {
fmt.Printf("Unable to create directory for teraform: %v", dir)
fmt.Printf("Unable to create directory for terraform: %v", dir)
panic(err)
}
}
Expand Down
8 changes: 4 additions & 4 deletions lib/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ func TestDownloadFromURL_FileNameMatch(t *testing.T) {

// create /.terraform.versions_test/ directory to store code
if _, err := os.Stat(installLocation); os.IsNotExist(err) {
log.Printf("Creating directory for teraform: %v", installLocation)
log.Printf("Creating directory for terraform: %v", installLocation)
err = os.MkdirAll(installLocation, 0755)
if err != nil {
fmt.Printf("Unable to create directory for teraform: %v", installLocation)
fmt.Printf("Unable to create directory for terraform: %v", installLocation)
panic(err)
}
}
Expand Down Expand Up @@ -95,10 +95,10 @@ func TestDownloadFromURL_FileExist(t *testing.T) {

// create /.terraform.versions_test/ directory to store code
if _, err := os.Stat(installLocation); os.IsNotExist(err) {
log.Printf("Creating directory for teraform: %v", installLocation)
log.Printf("Creating directory for terraform: %v", installLocation)
err = os.MkdirAll(installLocation, 0755)
if err != nil {
fmt.Printf("Unable to create directory for teraform: %v", installLocation)
fmt.Printf("Unable to create directory for terraform: %v", installLocation)
panic(err)
}
}
Expand Down
4 changes: 2 additions & 2 deletions lib/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ func Unzip(src string, dest string) ([]string, error) {
//CreateDirIfNotExist : create directory if directory does not exist
func CreateDirIfNotExist(dir string) {
if _, err := os.Stat(dir); os.IsNotExist(err) {
log.Printf("Creating directory for teraform: %v", dir)
log.Printf("Creating directory for terraform: %v", dir)
err = os.MkdirAll(dir, 0755)
if err != nil {
fmt.Printf("Unable to create directory for teraform: %v", dir)
fmt.Printf("Unable to create directory for terraform: %v", dir)
panic(err)
}
}
Expand Down

0 comments on commit 15253c0

Please sign in to comment.