Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit 8a42b28

Browse files
committed
unzip progress
1 parent c88381a commit 8a42b28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.actions/assistant.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
PATH_REQ_DEFAULT = os.path.join(_PATH_ROOT, "requirements", "default.txt")
2121
PATH_SCRIPT_RENDER = os.path.join(_PATH_HERE, "_ipynb-render.sh")
2222
PATH_SCRIPT_TEST = os.path.join(_PATH_HERE, "_ipynb-test.sh")
23+
UNZIP_PROGRESS_BAR = " | awk 'BEGIN {ORS=" "} {if(NR%10==0)print \".\"}'"
2324
REPO_NAME = "lightning-tutorials"
2425
COLAB_REPO_LINK = "https://colab.research.google.com/github/PytorchLightning"
2526
BRANCH_DEFAULT = "main"
@@ -287,7 +288,7 @@ def _bash_download_data(folder: str) -> List[str]:
287288
if ext not in AssistantCLI._EXT_ARCHIVE:
288289
continue
289290
if ext in AssistantCLI._EXT_ARCHIVE_ZIP:
290-
cmd += [f"mkdir -p {name}", f"unzip -o {fn} -d {name}"]
291+
cmd += [f"mkdir -p {name}", f"unzip -o {fn} -d {name} {UNZIP_PROGRESS_BAR}"]
291292
else:
292293
cmd += [f"tar -zxvf {fn} --overwrite"]
293294
cmd += [f"rm {fn}"]

0 commit comments

Comments
 (0)