We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ff9acc commit 213645dCopy full SHA for 213645d
1 file changed
src/UpdateCheck.lua
@@ -78,8 +78,13 @@ end
78
79
ConPrintf("Checking for update...")
80
81
-local scriptPath = "."
82
-local runtimePath = "."
+local scriptPath
+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
88
89
-- Load and process local manifest
90
local localVer
0 commit comments