summaryrefslogtreecommitdiff
path: root/scripts/context/lua/mtx-watch.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2008-01-28 21:28:00 +0100
committerHans Hagen <pragma@wxs.nl>2008-01-28 21:28:00 +0100
commitf0302311dd47bf250c0e2b5f8be46f21437f43d8 (patch)
treece920dd169066a8dcdf13b81490816ab58c0e4cd /scripts/context/lua/mtx-watch.lua
parente3467ba8810e788b01d8e7ce2e16d3c8ffdd3e2a (diff)
downloadcontext-f0302311dd47bf250c0e2b5f8be46f21437f43d8.tar.gz
stable 2008.01.28 21:28
Diffstat (limited to 'scripts/context/lua/mtx-watch.lua')
-rw-r--r--scripts/context/lua/mtx-watch.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/context/lua/mtx-watch.lua b/scripts/context/lua/mtx-watch.lua
index 651865ab4..96f6f7eb2 100644
--- a/scripts/context/lua/mtx-watch.lua
+++ b/scripts/context/lua/mtx-watch.lua
@@ -76,10 +76,10 @@ function scripts.watch.watch()
if newpath ~= "" and newpath ~= "." then
local oldpath = lfs.currentdir()
lfs.chdir(newpath)
- if pipe then result = os.resultof(command) else result = os.execute(command) end
+ if pipe then result = os.resultof(command) else result = os.spawn(command) end
lfs.chdir(oldpath)
else
- if pipe then result = os.resultof(command) else result = os.execute(command) end
+ if pipe then result = os.resultof(command) else result = os.spawn(command) end
end
logs.report("watch",string.format("return value: %s", result))
done = true