From fb687a4cd34f1287b97e6f88b5771853eb95e661 Mon Sep 17 00:00:00 2001 From: Ting Yuan Date: Wed, 19 Jul 2023 09:27:22 +0800 Subject: [PATCH] Fix bad variable name error during build on WSL WSL appends Windows environment variables to PATH, which causes `/bin/sh` to report a bad variable name error. This fix adds double quotes to avoid this problem. See also https://askubuntu.com/questions/1354999/bad-variable-name-error-on-wsl --- make-linux.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make-linux.mk b/make-linux.mk index 6702d040d..23bcf5967 100644 --- a/make-linux.mk +++ b/make-linux.mk @@ -429,8 +429,8 @@ debug: FORCE ifeq ($(ZT_SSO_SUPPORTED), 1) ifeq ($(ZT_EMBEDDED),) zeroidc: FORCE -# export PATH=/root/.cargo/bin:$$PATH; cd zeroidc && cargo build -j1 $(RUSTFLAGS) - export PATH=/${HOME}/.cargo/bin:$$PATH; cd zeroidc && cargo build $(RUSTFLAGS) +# export PATH=/root/.cargo/bin:"$$PATH"; cd zeroidc && cargo build -j1 $(RUSTFLAGS) + export PATH=/${HOME}/.cargo/bin:"$$PATH"; cd zeroidc && cargo build $(RUSTFLAGS) endif else zeroidc: