Skip to content

Commit af7369d

Browse files
committed
Adding relative binary path to command-line jammit.
1 parent 34c5072 commit af7369d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

bin/jammit

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env ruby -rrubygems
2+
require 'pathname'
23

3-
require "#{File.dirname(__FILE__)}/../lib/jammit/command_line.rb"
4+
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
5+
jammit_cl = File.join(APP_ROOT,'../lib/jammit/command_line.rb')
6+
require "#{jammit_cl}"
47

58
Jammit::CommandLine.new

0 commit comments

Comments
 (0)