From a83092f44a8fb13a9dfde5c7bfe6e5a7c5ec1112 Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Thu, 7 Mar 2024 19:44:31 -0500 Subject: [PATCH] Update main.go --- modules/initipfs/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/initipfs/main.go b/modules/initipfs/main.go index 59ca9ed..cf1ad7b 100644 --- a/modules/initipfs/main.go +++ b/modules/initipfs/main.go @@ -292,7 +292,7 @@ func readIPFSConfig(sourceIpfsConfig, path string) (IPFSConfig, error) { } // Read the existing file - data, err := os.ReadFile(path) + data, err := os.ReadFile(sourceIpfsConfig) if err != nil { panic(fmt.Sprintf("Failed to read IPFS config: %v", err)) } else if len(data) == 0 {