Skip to content

Commit 67538a4

Browse files
committed
lib/dtutils/system code cleanup
1 parent 96471ae commit 67538a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/dtutils/system.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ dtutils_system.libdoc.functions["os_execute"] = {
148148
}
149149

150150
function dtutils_system.os_execute(cmd)
151-
if _scripts_install.dt.configuration.running_os == "windows" then
151+
if dt.configuration.running_os == "windows" then
152152
cmd = "\"" .. cmd .. "\""
153153
end
154154
return os.execute(cmd)
@@ -173,7 +173,7 @@ dtutils_system.libdoc.functions["io_popen"] = {
173173
}
174174

175175
function dtutils_system.io_popen(cmd)
176-
if _scripts_install.dt.configuration.running_os == "windows" then
176+
if dt.configuration.running_os == "windows" then
177177
cmd = "\"" .. cmd .. "\""
178178
end
179179
return io.popen(cmd)

0 commit comments

Comments
 (0)