From 7aaf2eb4347d1e76f485ceb29328c4d662c8b3f5 Mon Sep 17 00:00:00 2001 From: ThomasVon2021 <1767893964@qq.com> Date: Thu, 19 Sep 2024 16:34:09 +0800 Subject: [PATCH] chore:Compatible with alpha upgrade command, will be removed in subsequent versions --- script/update.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/update.py b/script/update.py index 4eb1da5..04c1f0d 100755 --- a/script/update.py +++ b/script/update.py @@ -126,7 +126,8 @@ def main(): specified_version = None # Check if a version has been passed as an argument if len(sys.argv) > 1: - specified_version = sys.argv[1] + if sys.argv[1] != 'alpha' : + specified_version = sys.argv[1] # Remove/clear download directory cmd = "rm -rf /tmp/kvm_update" output = subprocess.check_output(cmd, shell = True, cwd=sh_path )