Procházet zdrojové kódy

Fix for missing -e option

oz123 před 11 roky
rodič
revize
77b58ef328
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      scripts/pwman3

+ 2 - 1
scripts/pwman3

@@ -116,7 +116,7 @@ def set_db(args):
         _saveconfig = False
         _saveconfig = False
 
 
 
 
-def set_algorithm(args):
+def set_algorithm(args, config):
     global _saveconfig
     global _saveconfig
     if args.algo:
     if args.algo:
         config.set_value("Encryption", "algorithm", args.algo)
         config.set_value("Encryption", "algorithm", args.algo)
@@ -133,6 +133,7 @@ def get_conf_options(args, OSX):
     set_win_colors(config)
     set_win_colors(config)
     set_db(args)
     set_db(args)
     set_umask(config)
     set_umask(config)
+    set_algorithm(args, config)
     dbtype = config.get_value("Database", "type")
     dbtype = config.get_value("Database", "type")
     if not dbtype:
     if not dbtype:
         print("Could not read the Database type from the config!")
         print("Could not read the Database type from the config!")