mirror of https://github.com/docker/cli.git
Fixing zsh column finding in nodes and stacks.
Signed-off-by: Bret Fisher <bret@bretfisher.com>
This commit is contained in:
parent
83cdc0f1bd
commit
8b6d6fa974
|
@ -1393,7 +1393,7 @@ __docker_nodes() {
|
||||||
# Names
|
# Names
|
||||||
if [[ $type = (names|all) ]]; then
|
if [[ $type = (names|all) ]]; then
|
||||||
for line in $lines; do
|
for line in $lines; do
|
||||||
s="${line[${begin[NAME]},${end[NAME]}]%% ##}"
|
s="${line[${begin[HOSTNAME]},${end[HOSTNAME]}]%% ##}"
|
||||||
nodes=($nodes $s)
|
nodes=($nodes $s)
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
@ -2169,9 +2169,9 @@ __docker_stacks() {
|
||||||
end[${header[$i,$((j-1))]}]=-1
|
end[${header[$i,$((j-1))]}]=-1
|
||||||
lines=(${lines[2,-1]})
|
lines=(${lines[2,-1]})
|
||||||
|
|
||||||
# Service ID
|
# Service NAME
|
||||||
for line in $lines; do
|
for line in $lines; do
|
||||||
s="${line[${begin[ID]},${end[ID]}]%% ##}"
|
s="${line[${begin[NAME]},${end[NAME]}]%% ##}"
|
||||||
stacks=($stacks $s)
|
stacks=($stacks $s)
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue