Przeglądaj źródła

Merge pull request #1827 from porter-dev/belanger/fix-docker-config-casing

Fix casing for docker config json file
abelanger5 4 lat temu
rodzic
commit
b4824de101
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      cli/cmd/docker.go

+ 1 - 1
cli/cmd/docker.go

@@ -89,7 +89,7 @@ func setDockerConfig(client *api.Client) error {
 	dockerConfigFile := filepath.Join(home, ".docker", "config.json")
 
 	// determine if configfile exists
-	if info, err := os.Stat(dockerConfigFile); info.IsDir() || os.IsNotExist(err) {
+	if _, err := os.Stat(dockerConfigFile); os.IsNotExist(err) {
 		// if it does not exist, create it
 		err := ioutil.WriteFile(dockerConfigFile, []byte("{}"), 0700)