diff options
| author | ruki <[email protected]> | 2026-06-29 23:02:20 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-29 23:02:20 +0800 |
| commit | 126942270243c80b35e47b99d7144a683d90c313 (patch) | |
| tree | adeebcb9e0a93b4e80bd1e571ef6b1f535936f2f /xmake/plugins | |
| parent | 0b5514fee79c9877ba23e26e974b10d980f2c582 (diff) | |
Fix PATH handling in debuild command
Updated the PATH environment variable handling in the debuild command to ensure it defaults to an empty string if not set.
Diffstat (limited to 'xmake/plugins')
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua index bac70c237..ebbdb548e 100644 --- a/xmake/plugins/pack/deb/main.lua +++ b/xmake/plugins/pack/deb/main.lua @@ -255,7 +255,8 @@ function _pack_deb(debuild, package) archive.archive(archivefile, archivefiles, {curdir = rootdir, compress = "best"}) -- build package - os.vrunv(debuild, {"-e", "PATH=" .. os.getenv("PATH"), "-us", "-uc"}, {curdir = sourcedir}) + -- https://github.com/xmake-io/xmake/issues/7626 + os.vrunv(debuild, {"-e", "PATH=" .. (os.getenv("PATH") or ""), "-us", "-uc"}, {curdir = sourcedir}) -- copy deb file os.vcp(path.join(path.directory(sourcedir), "*.deb"), package:outputfile()) |
