From c3403378c0a95696a467c1cbeae91a8926eb463c Mon Sep 17 00:00:00 2001 From: Jens van de Wiel Date: Fri, 10 Nov 2023 15:06:58 +0100 Subject: [PATCH] Update helpers.go --- server/helpers.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/helpers.go b/server/helpers.go index c2d9e9e..9cc4ac8 100644 --- a/server/helpers.go +++ b/server/helpers.go @@ -164,6 +164,11 @@ func CheckServerPorts(server *Server) error { } func CopyAndMakeOld(path string) error { + println("bob") + if _, err := os.Stat(path); os.IsNotExist(err) { + // File does not exist, return nil + return nil + } // Open the source file originalFile, err := os.Open(path) if err != nil {