lib/scout/command/install.rb in scout-5.7.0 vs lib/scout/command/install.rb in scout-5.7.1
- old
+ new
@@ -84,10 +84,10 @@
def cron_command(key)
if cron_script_required?
"#{config_dir}/scout_cron.sh"
else
- "#{`which scout`.strip} #{key}"
+ "#{File.expand_path($PROGRAM_NAME).strip} #{key}"
end
end
def cron_script_required?
Environment.rvm? || Environment.bundler?