diff options
| author | binLep <[email protected]> | 2026-07-06 10:26:36 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-06 10:26:36 +0800 |
| commit | 047560d9659f742354ef8be6e3394df2984a17f3 (patch) | |
| tree | 3b3d415f7c510b2355f37e5bb61bf3a6c3028c82 | |
| parent | 0cc074f1e31253225ae955bb7d3b75b8f61e190a (diff) | |
update(deb): enhance the PATH handling during the installation of deb packages
| -rw-r--r-- | xmake/plugins/pack/deb/main.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/pack/deb/main.lua b/xmake/plugins/pack/deb/main.lua index b0b1633ed..6c0968819 100644 --- a/xmake/plugins/pack/deb/main.lua +++ b/xmake/plugins/pack/deb/main.lua @@ -259,7 +259,7 @@ function _pack_deb(debuild, package) local debuild_args = {} local pathenv = os.getenv("PATH") - if pathenv then + if pathenv and pathenv ~= "" then table.insert(debuild_args, "-e") table.insert(debuild_args, "PATH=" .. pathenv) end |
