mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 14:01:36 +02:00
docker: fix flag parsing in docker wrapper script
The dockerd script incorrectly parsed --graph=/some/path, breaking the early-docker service.
This commit is contained in:
parent
dbd2e2ea82
commit
a044ce15c0
@ -11,8 +11,8 @@ parse_docker_args() {
|
|||||||
|
|
||||||
# treat --flag=foo and --flag foo identically
|
# treat --flag=foo and --flag foo identically
|
||||||
if [[ "${flag}" == *=* ]]; then
|
if [[ "${flag}" == *=* ]]; then
|
||||||
flag="${flag%=*}"
|
|
||||||
set -- "${flag#*=}" "$@"
|
set -- "${flag#*=}" "$@"
|
||||||
|
flag="${flag%=*}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "${flag}" in
|
case "${flag}" in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user