modified: packages/update.py

This commit is contained in:
OusmBlueNinja 2023-08-26 23:07:40 -05:00
parent 248f99b3d5
commit 8021d8ff94

View File

@ -30,11 +30,12 @@ def upd(command):
thread = threading.Thread(target=download_and_save, args=(url,))
threads.append(thread)
thread.start()
text = ""
# Display loading animation
while any(thread.is_alive() for thread in threads):
for _ in range(len(threads)):
print(".", end="", flush=True)
text += "."
print(text+"\r", end="", flush=True)
time.sleep(0.5)
print("\nAll files downloaded and saved!")