summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/plugins/pack/deb/main.lua2
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