mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue