aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/download.py
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2023-03-14 16:33:03 -0500
committerGitHub <noreply@github.com>2023-03-14 16:33:03 -0500
commit12a9c8ce65b58f0c600fd7b9fc5d454ce228b420 (patch)
tree9bada4164ea12fa533d413c0c7090f4779b519f1 /codegen/lib/download.py
parentb792e21d1c2b7dba04d88dba479ed451104a6514 (diff)
downloadazalea-drasl-12a9c8ce65b58f0c600fd7b9fc5d454ce228b420.tar.xz
1.19.4 (#57)
* 23w03a * 23w04a * 23w05a * 23w06a * fix * 23w07a mojang broke their json data generator so some stuff is missing * didn't mean to commit that file here * 1.19.4-pre2 * fix * 1.19.4-pre3 * fix * how did these packets get here * 1.19.4-pre4 * 1.19.4-rc1 * 1.19.4-rc2 * 1.19.4-rc3 * merge main * remove debugging code * 1.19.4
Diffstat (limited to 'codegen/lib/download.py')
-rwxr-xr-xcodegen/lib/download.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/codegen/lib/download.py b/codegen/lib/download.py
index aec3a648..1b22fbcc 100755
--- a/codegen/lib/download.py
+++ b/codegen/lib/download.py
@@ -177,7 +177,11 @@ def clear_version_cache():
if os.path.exists(get_dir_location(f'downloads/{file}')):
os.remove(get_dir_location(f'downloads/{file}'))
- os.system(
- f'cd {get_dir_location("downloads/Burger")} && git pull')
- os.system(
- f'cd {get_dir_location("downloads/pixlyzer")} && git pull')
+ burger_path = get_dir_location("downloads/Burger")
+ if os.path.exists(burger_path):
+ os.system(
+ f'cd {burger_path} && git pull')
+ pixlyzer_path = get_dir_location('downloads/pixlyzer')
+ if os.path.exists(pixlyzer_path):
+ os.system(
+ f'cd {pixlyzer_path} && git pull') \ No newline at end of file