Commit 88513e66 authored by Steven Armstrong's avatar Steven Armstrong

__ssh_authorized_keys: properly handle multiple --option parameters, fixes #393

Signed-off-by: default avatarSteven Armstrong <steven@icarus.ethz.ch>
parent 0583cdff
......@@ -69,7 +69,7 @@ while read -r key; do
set -- "$@" --key "$key"
set -- "$@" --state "$state"
if [ -f "$__object/parameter/option" ]; then
set -- "$@" --option "$(cat "$__object/parameter/option")"
set -- "$@" $(printf -- '--option %s ' $(cat "$__object/parameter/option"))
fi
if [ -f "$__object/parameter/comment" ]; then
set -- "$@" --comment "$(cat "$__object/parameter/comment")"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment