commit a421969c29c88f1f7a7c191643842b63f8c4c580
parent 530a66f16cfa28083b1384195a04a657e0f6f741
Author: Damien Leone <damien.leone@fensalir.fr>
Date: Sat, 26 Feb 2011 16:40:02 +0100
sup-sync-back-maildir: set default choice to "yes" when asked for synchronization
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/sup-sync-back-maildir b/bin/sup-sync-back-maildir
@@ -53,8 +53,8 @@ begin
else
sources.each do |s|
if opts[:no_confirm] == false
- print "Are you sure to synchronize '#{s.uri}'? (y/N) "
- next unless STDIN.gets.chomp.downcase == 'y'
+ print "Are you sure to synchronize '#{s.uri}'? (Y/n) "
+ next if STDIN.gets.chomp.downcase == 'n'
end
infos = Enumerator.new(index, :each_source_info, s.id).to_a