ZeroTierOne icon indicating copy to clipboard operation
ZeroTierOne copied to clipboard

Fix bad variable name error during build on WSL

Open timmyyuan opened this issue 2 years ago • 1 comments

WSL appends Windows environment variables to PATH, which causes /bin/sh to report a bad variable name error:

export PATH=//home/user/.cargo/bin:$PATH; cd zeroidc && cargo build --release
/bin/sh: 1: export: Files/Git/cmd:/mnt/c/Program: bad variable name
make: *** [make-linux.mk:433: zeroidc] Error 2

This fix adds double quotes to avoid this problem. See also https://askubuntu.com/questions/1354999/bad-variable-name-error-on-wsl

timmyyuan avatar Jul 19 '23 01:07 timmyyuan

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Feb 13 '25 19:02 CLAassistant