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
This commit is contained in:
Ting Yuan 2023-07-19 09:27:22 +08:00 committed by GitHub
parent 5a36b315a3
commit fb687a4cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: