oops, fix inotify dependency check

This commit is contained in:
leaf corcoran 2011-10-09 02:03:09 -07:00
parent 7f55485e62
commit aa514ebae9

8
moonc
View File

@ -249,13 +249,11 @@ function create_watcher(files)
local msg = "Starting watch loop, Ctrl-C to exit"
local inotify
if not pcall(function()
pcall(function()
inotify = require "inotify"
end) then
print_help("inotify not installed")
end
end)
if false and inotify then
if inotify then
local dirs = {}
for _, fname in ipairs(files) do
table.insert(dirs, get_dir(fname))