summaryrefslogtreecommitdiff
path: root/server/publish.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/publish.lua')
-rw-r--r--server/publish.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/server/publish.lua b/server/publish.lua
index ba0d0881..ca4423cb 100644
--- a/server/publish.lua
+++ b/server/publish.lua
@@ -1,9 +1,9 @@
local currentPath = debug.getinfo(1, 'S').source:sub(2)
-local rootPath = currentPath:gsub('[/\\][^/\\]-$', '')
-package.cpath = rootPath .. '/bin/?.so'
- .. ';' .. rootPath .. '/bin/?.dll'
-package.path = rootPath .. '/src/?.lua'
- .. ';' .. rootPath .. '/src/?/init.lua'
+local rootPath = currentPath:gsub('[^/\\]-$', '')
+package.cpath = rootPath .. 'bin/?.so'
+ .. ';' .. rootPath .. 'bin/?.dll'
+package.path = rootPath .. 'src/?.lua'
+ .. ';' .. rootPath .. 'src/?/init.lua'
local fs = require 'bee.filesystem'
local subprocess = require 'bee.subprocess'