diff options
author | Sewbacca <sewbacca@kolabnow.com> | 2024-02-27 21:39:19 +0100 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-29 17:27:47 +0000 |
commit | 531393e338746830aa6138c2f671ffc4e4db9e28 (patch) | |
tree | 855a8e70620118b1917065ecc6b206b18d7a4aee | |
parent | 6c2eb5a49c32dc5bc2c68681a99c799e5dbe8211 (diff) | |
download | luarocks-531393e338746830aa6138c2f671ffc4e4db9e28.tar.gz luarocks-531393e338746830aa6138c2f671ffc4e4db9e28.tar.bz2 luarocks-531393e338746830aa6138c2f671ffc4e4db9e28.zip |
fix: on windows environment variables are passed with trailing space
-rw-r--r-- | src/luarocks/fs/win32.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32.lua b/src/luarocks/fs/win32.lua index 09ce7290..bba68736 100644 --- a/src/luarocks/fs/win32.lua +++ b/src/luarocks/fs/win32.lua | |||
@@ -349,7 +349,7 @@ function win32.is_superuser() | |||
349 | end | 349 | end |
350 | 350 | ||
351 | function win32.export_cmd(var, val) | 351 | function win32.export_cmd(var, val) |
352 | return ("SET %s=%s"):format(var, val) | 352 | return ("SET %s"):format(fs.Q(var.."="..val)) |
353 | end | 353 | end |
354 | 354 | ||
355 | function win32.system_cache_dir() | 355 | function win32.system_cache_dir() |