mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
In preparation to fixing #99, normalize different methods of quoting to no quoting
Signed-off-by: Andreas Stieger <astieger@suse.com>
This commit is contained in:
parent
ef81ec7a47
commit
49f78d715a
1 changed files with 5 additions and 1 deletions
|
@ -69,7 +69,11 @@ get_docker_cumulative_command_line_args() {
|
||||||
|
|
|
|
||||||
# get the last interesting option
|
# get the last interesting option
|
||||||
tr ' ' "\n" |
|
tr ' ' "\n" |
|
||||||
grep "^${OPTION}"
|
grep "^${OPTION}" |
|
||||||
|
# normalize quoting of values
|
||||||
|
sed \
|
||||||
|
-e 's/"//g' \
|
||||||
|
-e "s/'//g"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Extract the effective command line arguments for the docker daemon
|
# Extract the effective command line arguments for the docker daemon
|
||||||
|
|
Loading…
Reference in a new issue