diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2015-12-11 14:48:26 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2015-12-11 14:48:26 -0700 |
| commit | d2fd5ed6d2579995465bc617ebd8fb791f08c5ab (patch) | |
| tree | 3fbd04c924b5c631773a249e6a12171cb8912a51 /bin | |
| parent | 31cd2b5de36a58bd5a700c18d1c85f3eca5c71e0 (diff) | |
allow asciidoctor path to be resolved without leading ./
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/asciidoctor | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/asciidoctor b/bin/asciidoctor index 785bfdf8..2b112173 100755 --- a/bin/asciidoctor +++ b/bin/asciidoctor @@ -2,8 +2,8 @@ require 'rubygems' if RUBY_VERSION < '1.9' -if File.exist?(asciidoctor_lib_path = File.join(File.dirname(__FILE__), '../lib/asciidoctor')) - require asciidoctor_lib_path +if File.exist?(app_lib_path = (File.expand_path '../../lib/asciidoctor', __FILE__)) + require app_lib_path else require 'asciidoctor' end |
