Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit bdf67b3

Browse files
committed
check status of wget
1 parent 3c17ba8 commit bdf67b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

runestone/server/utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,14 @@ def populate_static(config, mpath: Path, course: str, click=click):
296296
click.echo(f"ERROR - could not delete {f}")
297297
# call wget non-verbose, recursive, no parents, no hostname, no directoy copy files to sdir
298298
# trailing slash is important or otherwise you will end up with everything below runestone
299-
subprocess.call(
299+
res = subprocess.call(
300300
f"""wget -nv -r -np -nH -nd -P {sdir} https://runestone.academy/cdn/runestone/{version}/
301301
""",
302302
shell=True,
303303
)
304+
if res != 0:
305+
click.echo("wget of runestone files failed")
306+
return False
304307
else:
305308
click.echo(f"_static files already up to date for {version}")
306309
return True

0 commit comments

Comments
 (0)