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 983051f commit c5c3934Copy full SHA for c5c3934
contrib/Installer/assets/main.lua
@@ -354,14 +354,18 @@ function init()
354
os.execute(cmd)
355
version_file_path = mtfg_repo_path.."/funscript_editor/VERSION.txt"
356
end
357
- local f = io.open(version_file_path)
358
- if f then
359
- for line in f:lines() do
360
- if string.find(string.lower(line), "v") then
361
- mtfgVersion = string.lower(line):gsub("v", "")
+ if platform == "Linux, Nix" then
+ mtfgVersion = "nixpkgs"
+ else
+ local f = io.open(version_file_path)
+ if f then
362
+ for line in f:lines() do
363
+ if string.find(string.lower(line), "v") then
364
+ mtfgVersion = string.lower(line):gsub("v", "")
365
+ end
366
367
+ f:close()
368
- f:close()
369
370
371
0 commit comments