diff options
author | Hans Hagen <pragma@wxs.nl> | 2008-01-28 21:28:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2008-01-28 21:28:00 +0100 |
commit | f0302311dd47bf250c0e2b5f8be46f21437f43d8 (patch) | |
tree | ce920dd169066a8dcdf13b81490816ab58c0e4cd /scripts/context/lua/mtx-watch.lua | |
parent | e3467ba8810e788b01d8e7ce2e16d3c8ffdd3e2a (diff) | |
download | context-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.lua | 4 |
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 |