We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54b5c32 commit 635e324Copy full SHA for 635e324
1 file changed
clone.py
@@ -12,8 +12,8 @@ def main(argv):
12
if repo not in os.listdir():
13
dev = release is None or not release.split("-")[1].startswith("3")
14
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"])
+ subprocess.run(["git", "clone", f"https://github.com/libsdl-org/{repo}.git", "--recursive"], shell = sdl3.SDL_SYSTEM in ["Windows"])
+ if not dev: subprocess.run(["git", "checkout", f"tags/{release}"], cwd = repo, shell = sdl3.SDL_SYSTEM in ["Windows"])
17
18
else:
19
print("\33[35m", f"warning: passing '{repo}' because it already exists...", "\33[0m", sep = "", flush = True)
0 commit comments