Skip to content

Commit 695fb49

Browse files
authored
fix(quickstart): handle potential wrapping of df cmd output in disk space check (#15083)
1 parent 12cf281 commit 695fb49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metadata-ingestion/src/datahub/cli/docker_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def run_quickstart_preflight_checks(client: docker.DockerClient) -> None:
111111

112112
result = client.containers.run(
113113
"alpine:latest",
114-
"sh -c \"df -B1 / | tail -1 | awk '{print $2, $4}'\"", # total, available
114+
"sh -c \"df -B1 -P / | awk 'NR==2{print $2, $4}'\"", # total, available
115115
remove=True,
116116
stdout=True,
117117
stderr=True,

0 commit comments

Comments
 (0)