Skip to content

Commit

Permalink
Merge pull request panubo#49 from Frederik-Baetens/patch-1
Browse files Browse the repository at this point in the history
add brackets around $(ls -A /etc/authorized_keys) in if statement in entry.sh
  • Loading branch information
macropin authored May 19, 2020
2 parents 509e6c8 + ecb6aba commit 1cd89dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ if [ -n "${SSH_USERS}" ]; then
done
else
# Warn if no authorized_keys
if [ ! -e ~/.ssh/authorized_keys ] && [ ! $(ls -A /etc/authorized_keys) ]; then
if [ ! -e ~/.ssh/authorized_keys ] && [ ! "$(ls -A /etc/authorized_keys)" ]; then
echo "WARNING: No SSH authorized_keys found!"
fi
fi
Expand Down

0 comments on commit 1cd89dc

Please sign in to comment.