fix: update clone.py

Description:

Log:
This commit is contained in:
mikigo 2024-03-11 13:41:15 +08:00
parent 198f06e230
commit 11c881a103
1 changed files with 1 additions and 1 deletions

View File

@ -41,5 +41,5 @@ def clone(
os.system(
f"cd {conf.APPS_PATH} && git clone {url} "
f"{url or conf.GIT_URL}"
f"{f'-b {branch}' or ''} {f'--depth {depth}' or ''}"
f"{f'-b {branch}' if branch else ''} {f'--depth {depth}' if depth else ''}"
)