Skip to content

Commit 213645d

Browse files
committed
Get proper local directory
1 parent 5ff9acc commit 213645d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/UpdateCheck.lua

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,13 @@ end
7878

7979
ConPrintf("Checking for update...")
8080

81-
local scriptPath = "."
82-
local runtimePath = "."
81+
local scriptPath
82+
local runtimePath
83+
do
84+
local currentDir = io.popen("cd"):read() or io.popen("pwd"):read() or "."
85+
scriptPath = currentDir
86+
runtimePath = currentDir
87+
end
8388

8489
-- Load and process local manifest
8590
local localVer

0 commit comments

Comments
 (0)