From 4837c3ec9f740ea94181779eb2664df87c893d64 Mon Sep 17 00:00:00 2001 From: caohongtao_yewu Date: Tue, 2 Apr 2024 17:39:53 +0800 Subject: [PATCH] If you want to rm the path,you need to use the "rm -rf *" Sign-off-by: caohongtao_yewu --- src/oebuild/app/plugins/generate/generate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oebuild/app/plugins/generate/generate.py b/src/oebuild/app/plugins/generate/generate.py index 53d53af..74088b4 100644 --- a/src/oebuild/app/plugins/generate/generate.py +++ b/src/oebuild/app/plugins/generate/generate.py @@ -217,7 +217,7 @@ class Generate(OebuildCommand): if not os.path.exists(config_path): sys.exit(0) generate_command = self.generate_command(config_path) - subprocess.check_output(f'rm {config_path}', shell=True) + subprocess.check_output(f'rm -rf {config_path}', shell=True) args = args.parse_args(generate_command) else: args = args.parse_args(unknown) @@ -306,7 +306,7 @@ class Generate(OebuildCommand): print( f"{key}, {oebuild_config.docker.repo_url}:{value}") k = input("please entry number:") - if k == "q": + if k == "q" or k== "Q": sys.exit(0) try: index = int(k) -- Gitee