From ec3847a7f23604de96a1b3e7dc88cff03bd8c764 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 17 Jul 2022 16:05:05 +0800 Subject: [PATCH] Update tools.py --- tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools.py b/tools.py index 394bce34c..bf4e22dd8 100755 --- a/tools.py +++ b/tools.py @@ -64,7 +64,7 @@ if __name__ == "__main__": if type == 'panel': set_panel_pwd(sys.argv[2]) elif type == 'username': - if len(sys.argv) == 2: + if len(sys.argv) > 2: set_panel_username(sys.argv[2]) else: set_panel_username()