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 b257458 commit c5f1906Copy full SHA for c5f1906
1 file changed
src/UpdateApply.lua
@@ -6,7 +6,7 @@
6
--
7
8
---@param opFileName string
9
-return function(opFileName)
+local function applyUpdate(opFileName)
10
print("Applying update...")
11
local opFile = io.open(opFileName, "r")
12
if not opFile then
@@ -47,3 +47,14 @@ return function(opFileName)
47
end
48
49
50
+
51
+-- this file is used both as a module and as a script depending on the update
52
+-- mode. basic mode will spawn a process, while normal mode will use this as a
53
+-- module.
54
55
+local opFileName = ...
56
+if opFileName then
57
+ return applyUpdate(opFileName)
58
+end
59
60
+return applyUpdate
0 commit comments