Permalink
Browse files

Fix output of `lsof` is nothing

  • Loading branch information...
mvj3 committed Mar 19, 2013
1 parent c9e1c39 commit 79fa6af3fbd486e0332db8477adda43ed01c6cf4
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/only_one_rake.rb
View
@@ -7,7 +7,7 @@ def namespace_equal? namespace
end
def working_dir_equal? working_dir
- !!(`lsof -p #{self.pid} | grep cwd | grep DIR`.split[-1].match(working_dir))
+ !!(`lsof -p #{self.pid} | grep cwd | grep DIR`.split[-1].to_s.match(working_dir))
end
end

0 comments on commit 79fa6af

Please sign in to comment.