mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
output before try
This commit is contained in:
parent
4416c3d512
commit
818a909222
1 changed files with 4 additions and 4 deletions
|
|
@ -78,11 +78,11 @@ def install_environment(
|
||||||
|
|
||||||
|
|
||||||
def get_docker_user() -> Tuple[str, ...]: # pragma: win32 no cover
|
def get_docker_user() -> Tuple[str, ...]: # pragma: win32 no cover
|
||||||
try:
|
|
||||||
output = subprocess.check_output(
|
output = subprocess.check_output(
|
||||||
('docker', 'system', 'info'),
|
('docker', 'system', 'info'),
|
||||||
text=True,
|
text=True,
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
for line in output.splitlines():
|
for line in output.splitlines():
|
||||||
# rootless docker has "rootless"
|
# rootless docker has "rootless"
|
||||||
# rootless podman has "rootless: true"
|
# rootless podman has "rootless: true"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue