From cc1d36a3958be769e13e4b31c68b355f2c54d9f1 Mon Sep 17 00:00:00 2001 From: Xpl0itU <24777100+Xpl0itU@users.noreply.github.com> Date: Thu, 20 Jul 2023 13:48:38 +0200 Subject: [PATCH] Hotfix for macOS detection --- cmd/WiiUDownloader/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/WiiUDownloader/main.go b/cmd/WiiUDownloader/main.go index c9e5c78..ff8b9c4 100644 --- a/cmd/WiiUDownloader/main.go +++ b/cmd/WiiUDownloader/main.go @@ -4,13 +4,14 @@ import ( "fmt" "os" "path/filepath" + "runtime" wiiudownloader "github.com/Xpl0itU/WiiUDownloader" ) func main() { // Check if user is running macOS - if os.Getenv("GOOS") != "darwin" { + if runtime.GOOS == "darwin" { execPath, err := os.Executable() if err != nil { fmt.Println("Error:", err)