Commit e24d7fc
fix(docker): anchor hostname extraction to leading "Name:" only
`docker info` emits both `Username: <user>` (under `Server:`) and
`Name: <host>` near the bottom; the previous grep pattern `-i -e name:`
caught both, so on hosts where docker stores credentials we ended up with
`DOCKER_SERVER_NAME_HOST="<user> <host>"` after `cut + xargs` glued the
two matches together. The Darwin `case` dispatch downstream then failed
to recognise "Docker Desktop" / "Rancher Desktop", silently turning off
the loop-hack workarounds.
Anchor the grep to a leading-whitespace + literal `Name:` and take only
the first match (`-m1`). Pre-existing on main, surfaced during P2b review
by @coderabbitai.
Assisted-by: Claude:claude-opus-4.71 parent 352f610 commit e24d7fc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments