diff --git a/install_requirements.sh b/install_requirements.sh old mode 100644 new mode 100755 diff --git a/rwms_sort.py b/rwms_sort.py index 3fa454e..4e1e721 100644 --- a/rwms_sort.py +++ b/rwms_sort.py @@ -543,14 +543,14 @@ def load_mod_data(cats, db, basedir, modsource): if args.dry_run: print_dry_run(modsconfigfile, doc, mod_data_full) write_modsconfig = False - - # ask for confirmation to write the ModsConfig.xml anyway - while True and not args.dry_run: - data = input("Do you REALLY want to write ModsConfig.xml (y/n): ") - if data.lower() in ('y', 'n'): - break - if data.lower() == 'y': - write_modsconfig = True + else: + # ask for confirmation to write the ModsConfig.xml anyway + while True: + data = input("Do you REALLY want to write ModsConfig.xml (y/n): ") + if data.lower() in ('y', 'n'): + break + if data.lower() == 'y': + write_modsconfig = True if write_modsconfig: # do backup diff --git a/rwms_sort.sh b/rwms_sort.sh old mode 100644 new mode 100755