diff options
author | Eric Wong <e@80x24.org> | 2016-11-05 01:04:51 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-11-05 01:15:48 +0000 |
commit | af91a075c10cfc7dd6f7e04c55ae2b14dc25d1ea (patch) | |
tree | ea1b4a3655306b4041b3f130495eba573dd6beab | |
parent | 4224237cb4958d453f3ea3658d0fc9d2786fdea8 (diff) | |
download | dtas-af91a075c10cfc7dd6f7e04c55ae2b14dc25d1ea.tar.gz |
We can't do much for readahead when it comes to dtas-player running arbitrary commands.
-rwxr-xr-x | bin/dtas-readahead | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/dtas-readahead b/bin/dtas-readahead index b4b7311..6034763 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -133,6 +133,7 @@ def do_ra(fp, pos, w) end def do_open(path) + return unless path # could be a command if path =~ /\.ya?ml\z/ File.open(path) do |fp| buf = fp.read(4) |