From c866cfbec5be6a26f4557662638b60bc1615f74a Mon Sep 17 00:00:00 2001 From: syyyj <3139487747@qq.com> Date: Sun, 26 Feb 2023 22:46:53 +0800 Subject: [PATCH] Optimize statement logic Optimize statement logic --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 77ee21a82..90fc08d1c 100644 --- a/Makefile +++ b/Makefile @@ -17,10 +17,8 @@ endif # Windows ifeq ($(os),MINGW) -GOBIN := $(subst \,/,$(GOBIN)) -GOPATH := $(subst \,/,$(GOPATH)) -GOBIN :=/$(shell echo "$(GOBIN)" | cut -d';' -f1 | sed 's/://g') -GOPATH :=/$(shell echo "$(GOPATH)" | cut -d';' -f1 | sed 's/://g') +GOBIN := $(shell echo "$(GOBIN)" | cut -d';' -f1 | sed 's/[\\/:]//g') +GOPATH := $(shell echo "$(GOPATH)" | cut -d';' -f1 | sed 's/[\\/:]//g') endif BIN := ""