From 31c249ab77e23131e19d6ccf5549283598e0ab5d Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Wed, 21 Mar 2007 21:21:00 +0000 Subject: [PATCH] pamusb-conf: Default answer (yes) for the 'saving' dialog --- tools/pamusb-conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/pamusb-conf b/tools/pamusb-conf index d719641..a8601a8 100755 --- a/tools/pamusb-conf +++ b/tools/pamusb-conf @@ -98,8 +98,9 @@ def shouldSave(options, items): print "\n".join(["%s\t\t: %s" % item for item in items]) print print 'Save to %s ?' % options['configFile'] - sys.stdout.write('[y/n] ') - if sys.stdin.readline().strip() != 'y': + sys.stdout.write('[Y/n] ') + response = sys.stdin.readline().strip() + if len(response) > 0 and response.lower() != 'y': sys.exit(1) def prettifyElement(element):