Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libre
docker-sshd
Commits
a11cb99a
Commit
a11cb99a
authored
Mar 12, 2020
by
Michał "rysiek" Woźniak
Browse files
bugfix: assemble_authorized_keys now handles missing keys properly
(cherry picked from commit
e61190d5
)
parent
35a1661f
Changes
1
Hide whitespace changes
Inline
Side-by-side
run.sh
View file @
a11cb99a
...
...
@@ -38,9 +38,10 @@ function assemble_authorized_keys {
fi
# let's check if the pubkey file(s) exists, shall we?
KEYFILES
=
"
$(
compgen
-G
"
${
PUBKEYDIR
}
/
${
KEYGLOB
}
"
)
"
# '|| true' needed because we're in a `set -e` situation
KEYFILES
=
"
$(
compgen
-G
"
${
PUBKEYDIR
}
/
${
KEYGLOB
}
"
||
true
)
"
# did we find anything?
if
[
$?
==
0
]
;
then
if
[
"
$KEYFILES
"
!=
""
]
;
then
echo
" +-- found keyfile(s), processing..."
# the IFS is conveniently already set to newline and newline only
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment