From 4ce0fbdf3fe0a04764020fad14ecf0572e8ec469 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Fri, 18 Mar 2016 21:27:09 +0100 Subject: [PATCH] make -n working not only in combination with -a fixes #107 --- updateHostsFile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/updateHostsFile.py b/updateHostsFile.py index dda1b51d0..a8ae555d2 100644 --- a/updateHostsFile.py +++ b/updateHostsFile.py @@ -146,8 +146,11 @@ def promptForUpdate(): except: printFailure("ERROR: No 'hosts' file in the folder, try creating one manually") + if not update: + return + response = "yes" if auto else query_yes_no("Do you want to update all data sources?") - if response == "yes" and update: + if response == "yes": updateAllSources() else: if not auto: