bin/metrics-jstat.rb in sensu-plugins-java-1.3.0 vs bin/metrics-jstat.rb in sensu-plugins-java-2.0.0
- old
+ new
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
-bin_dir = File.expand_path(File.dirname(__FILE__))
-shell_script_path = File.join(bin_dir, File.basename($PROGRAM_NAME, '.rb') + '.py')
+shell_script_path = File.join(__dir__, File.basename($PROGRAM_NAME, '.rb') + '.py')
exec shell_script_path, *ARGV