0
0
Fork 0
mirror of https://github.com/atmoz/sftp.git synced 2024-11-24 12:59:24 -05:00

Ignore blank lines in sftp-users.conf

This commit is contained in:
Christian Bundy 2016-03-28 20:15:39 -07:00
parent 9c63c2d806
commit bda3f0d48e

View file

@ -89,7 +89,7 @@ if [ ! -f "$userConfFinalPath" ]; then
# Append mounted config to final config
if [ -f "$userConfPath" ]; then
cat "$userConfPath" > "$userConfFinalPath"
cat "$userConfPath" | grep -v -e '^$' > "$userConfFinalPath"
fi
# Append users from arguments to final config