Reformatted excerpts from William Morgan's message of 2011-01-19:
> Reformatted excerpts from Sascha Silbe's message of 2011-01-18:
> > +      unless File.exists?(backup_fn) && File.size(fn) == 0
> 
> This line is giving me some problems when fn doesn't exist (e.g. when
> running sup-sync the first time without a config.yaml). Should it be
> 
>   File.exists?(backup_fn) && File.exists?(fn) && File.size(fn) == 0
> 
> instead?

Actually, I think it should be:

  if File.exists?(fn) && File.size(fn) > 0

Which has the advantage of actually working...
-- 
William <wmorgan-...@masanjin.net>
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel

Reply via email to