Skip to content

Commit 635e324

Browse files
committed
.
1 parent 54b5c32 commit 635e324

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

clone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ def main(argv):
1212
if repo not in os.listdir():
1313
dev = release is None or not release.split("-")[1].startswith("3")
1414
print("\33[32m", f"info: cloning '{repo}'", f"with release '{release}'..." if not dev else "without any release...", "\33[0m", sep = "", flush = True)
15-
subprocess.run(["git", "clone", f"https://github.com/libsdl-org/{repo}.git", "--recursive"], shell = sdl3.SDL_SYSTEM not in ["Darwin"])
16-
if not dev: subprocess.run(["git", "checkout", f"tags/{release}"], cwd = repo, shell = sdl3.SDL_SYSTEM not in ["Darwin"])
15+
subprocess.run(["git", "clone", f"https://github.com/libsdl-org/{repo}.git", "--recursive"], shell = sdl3.SDL_SYSTEM in ["Windows"])
16+
if not dev: subprocess.run(["git", "checkout", f"tags/{release}"], cwd = repo, shell = sdl3.SDL_SYSTEM in ["Windows"])
1717

1818
else:
1919
print("\33[35m", f"warning: passing '{repo}' because it already exists...", "\33[0m", sep = "", flush = True)

0 commit comments

Comments
 (0)