bin/t in samg-timetrap-0.1.0 vs bin/t in samg-timetrap-0.1.1
- old
+ new
@@ -1,3 +1,11 @@
#!/usr/bin/env ruby
-require 'timetrap'
+begin
+ require 'timetrap'
+rescue LoadError
+ if File.symlink? __FILE__
+ require File.dirname(File.readlink(__FILE__)) + '/../lib/timetrap'
+ else
+ require File.dirname(__FILE__) + '/../lib/timetrap'
+ end
+end
Timetrap::CLI.invoke