lib/rsync_cron/scheduler.rb in rsync_cron-1.0.5 vs lib/rsync_cron/scheduler.rb in rsync_cron-1.0.6
- old
+ new
@@ -5,10 +5,10 @@
@shell = shell
end
def call
return if @shell.empty?
- IO.popen(@shell, "r+") do |pipe|
+ IO.popen(@shell, "a+") do |pipe|
pipe.puts(@content)
pipe.close_write
end
$?.exitstatus.zero?
end